G
Guest
Hi all
I have tried to incorporate paging in datagrid ,it is working fine for th
page except for for the last and first page,follwoing is the code i have used
private void DataGrid_PageIndexChanged(object
sender,DataGridPageChangedEventArgs e)
{
DataGird.CurrentPageIndex=e.NewPageIndex
DataGrid.DataSource=DataSet;
DataGrid.DataBind();
}
1) when i click the first page the "DataGrid_PageIndexChanged" is not firing.
2)After clicking on the last page if i try to navigate to some other page
uneven records are being(irrespective of the page being) displayed.
can anyone please suggest me how to go about this
Thanks
Srujan.N
I have tried to incorporate paging in datagrid ,it is working fine for th
page except for for the last and first page,follwoing is the code i have used
private void DataGrid_PageIndexChanged(object
sender,DataGridPageChangedEventArgs e)
{
DataGird.CurrentPageIndex=e.NewPageIndex
DataGrid.DataSource=DataSet;
DataGrid.DataBind();
}
1) when i click the first page the "DataGrid_PageIndexChanged" is not firing.
2)After clicking on the last page if i try to navigate to some other page
uneven records are being(irrespective of the page being) displayed.
can anyone please suggest me how to go about this
Thanks
Srujan.N