I am using this line of code to allow the user to choose the page size:
It works fine until the textbook is empty. In such case the amount of rows get stacked to 1 and there is no more control. I mean, paging size does not work anymore. Is this an expected behavior?
I solved it like this:
Thanks
private void radTextBox1_TextChanged(object sender, EventArgs e)
{
radGridView1.MasterTemplate.PageSize = Int32.Parse(radTextBox1.Text);
}
It works fine until the textbook is empty. In such case the amount of rows get stacked to 1 and there is no more control. I mean, paging size does not work anymore. Is this an expected behavior?
I solved it like this:
if (radTextBox1.Text != "")
{
radGridView1.MasterTemplate.PageSize = Int32.Parse(radTextBox1.Text);
}
Thanks