ajay raju

ajay raju

  • NA
  • 398
  • 0

Data grid page index changed

Apr 15 2010 7:52 AM

hi!
in my datagrid i give paging. i.e., one page contain 10 rows. and 11th row onwards it dispaly 2nd page.
my problem is when i delete all records in a datagrid page means 2nd page contains a 11 to 20 rows. if i deletes the 2nd page all records. all Records are deleted but it shows a error in this line   datagrid1.databind().
"Invalid CurrentPageIndex value.  It must be >= 0 and < the PageCount."
how to solve this error. please give reply.
Thanks

Answers (7)