mariacri11
Programmer
I have a page wich does the following:
I select a value from a DropDownList and I press a button.
The DataGrid displays values based on the selected value.
It works fine until I select a value which shoult display less pages then the previous selection.
In this case I get the following error:
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
I tried to write code on the button so that i return to the first datagrid page before executing the databind.
But PageCount property is read only .
Thanks!
I select a value from a DropDownList and I press a button.
The DataGrid displays values based on the selected value.
It works fine until I select a value which shoult display less pages then the previous selection.
In this case I get the following error:
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
I tried to write code on the button so that i return to the first datagrid page before executing the databind.
But PageCount property is read only .
Thanks!