How to set the current page index of a datagrid with delete functionality
Posted on 2005-03-24
I have a datagrid with paging feature. I set the page size to 3. So it loads 3 rows in a page. I also have the delete functionality for the datagrid. Can anybody suggest me how I can set the current page index properly so that when a row is deleted, the same page is loaded, except for the last row (loaded in a new page) in the datagrid which when deleted shud load the previous page?
example the datagrid has 7 rows and the rows are loaded into 3 pages, third page has only one row in it.
Thanks a lot.
Please let me know if the ques is not clear.