F
Fabiano
Please,
i've created a datagrid that allow numbered paging.
But when i click over a page that must be called, i get this error:
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0
and < the PageCount
at my page, on Paging Event i'm using the commands bellow:
private void DataGrid1_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();
}
I get the error at the DataBind function. what could be wrong?
Tks
Fabiano
i've created a datagrid that allow numbered paging.
But when i click over a page that must be called, i get this error:
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0
and < the PageCount
at my page, on Paging Event i'm using the commands bellow:
private void DataGrid1_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();
}
I get the error at the DataBind function. what could be wrong?
Tks
Fabiano