Hello,
I have a problem in C# with a datagrid i use with paging.
With the paging I can display 10 items in one page.
Those items can be deleted separately.
When i delete one of them, i update the datatable used as datasource
and I redo a DataBind() for the datagrid.
If i have 11 items to display, the 11th item is displayed in the 2nd
page. But if i delete it, the application crashes and I get the
information that CurrentPageIndex is not valid (since I have not 2
pages anymore but 1)
I tried to set the CurrentPageIndex to 1 before I do the databind() but
i get the same error.
Is there a way to correct this ?
thanks.
--
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net