Hi,
as I told you if you do these steps correctly you should not face this problem
1-delete the row(s) from datasource(or your probable dataset)in any order
2-change the datasource of your grid
3-bind your grid
finally your datasource is empty and your grid doesnt show any filed without any error
I dont know exactly how you delete the rows ...
anyway try this optional way for avoiding this error...
Code:
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
if((e.NewPageIndex>=0) & (e.NewPageIndex<=DataGrid1.PageCount))
DataGrid1.CurrentPageIndex = e.NewPageIndex;
else
DataGrid1.CurrentPageIndex =0;
}
HtH.
--------------------------------------------
Mehdi.:)