A
Andrea Williams
I have a datagrid that only shows 2 items per page. The page numbers appear
at the bottome of each page for the user to page through the list. It shows
1 through 10 and then a "..." link. If I click the "..." link I can see
page numbers 11 through 20 and another "..." link. However if I cllick that
link, it sends me back to the first 1 through 10 pages instead of 21 through
30. I know there are enough items that 34 pages should show up. So what is
the problem?
also, any of the numbers that I click from 11 to 20 send me back to the
corresponding number in the 1 through 10 pages... It seems like it's not
returning the correct numbers to the paging handler...
Code is as follows:
private void DataGrid1_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
this.DataGrid1.CurrentPageIndex = e.NewPageIndex;
if (this.mdsDataSource != null)
this.DataGrid1.DataBind();
}
at the bottome of each page for the user to page through the list. It shows
1 through 10 and then a "..." link. If I click the "..." link I can see
page numbers 11 through 20 and another "..." link. However if I cllick that
link, it sends me back to the first 1 through 10 pages instead of 21 through
30. I know there are enough items that 34 pages should show up. So what is
the problem?
also, any of the numbers that I click from 11 to 20 send me back to the
corresponding number in the 1 through 10 pages... It seems like it's not
returning the correct numbers to the paging handler...
Code is as follows:
private void DataGrid1_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
this.DataGrid1.CurrentPageIndex = e.NewPageIndex;
if (this.mdsDataSource != null)
this.DataGrid1.DataBind();
}