G
Guest
Hello,
I am displaying data from database in datagrid. DG is having edit and
delete features. Pagesize is 10. I have total 12 records(2 pages). Now i am
deleting 12th and 11th records. Delete operation is successful. But, after
deleting the last record in the 2nd page, i am getting error " Invalid
CurrentPageIndex value. It must be >= 0 and < the PageCount." coz that is the
last record in that page but there are records in the prev page. What to do
to avoid that error?
I am displaying data from database in datagrid. DG is having edit and
delete features. Pagesize is 10. I have total 12 records(2 pages). Now i am
deleting 12th and 11th records. Delete operation is successful. But, after
deleting the last record in the 2nd page, i am getting error " Invalid
CurrentPageIndex value. It must be >= 0 and < the PageCount." coz that is the
last record in that page but there are records in the prev page. What to do
to avoid that error?