Datagrid problem

  • Thread starter Thread starter Roy
  • Start date Start date
R

Roy

Hi All,
I am doing my first ASP.Net project. I am having a problem with a datagrid.
I have two datagrids on the page. Both allow paging. As far as I can tell
both have the same properties set. However, one grid pages just fine. The
other does not. Both are bound to a dataset (not the same dataset). I used
the property builder to configure both grids.
The dataset bound to the probelm grid has 43 rows. However, only the first
five are on the grid and "Next" is underlined. When I click on "Next" I see
the progress bars, at the bottom of the page but, the values don't change.
I have tried everythng I know to do. Would someone give me some direction???
Thanks in advance,
Roy
 
Roy said:
Hi All,
I am doing my first ASP.Net project. I am having a problem with a datagrid.
I have two datagrids on the page. Both allow paging. As far as I can tell
both have the same properties set. However, one grid pages just fine. The
other does not. Both are bound to a dataset (not the same dataset). I used
the property builder to configure both grids.
The dataset bound to the probelm grid has 43 rows. However, only the first
five are on the grid and "Next" is underlined. When I click on "Next" I see
the progress bars, at the bottom of the page but, the values don't change.
I have tried everythng I know to do. Would someone give me some direction???
Thanks in advance,
Roy

Sorry I can't be more specific, but my best guess is your page isn't reading
the PageIndex correctly. Check out the paging samples near the bottom of
page http://www.asp.net/Tutorials/quickstart.aspx, specifically the
following:

Sub MyDataGrid_Page(sender As Object, e As DataGridPageChangedEventArgs)
MyDataGrid.CurrentPageIndex = e.NewPageIndex
BindGrid
End Sub

HTH
 
Back
Top