Beginners question about DataGrid and page selection

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

I ahve a DataGrid that is using selective data from a DataSet. I defined for
each column how to bind.
I'm using 10 rows disaplyed at the time. I have 11 items. Therefore a number
2 link shows up.
However when clicking on it, after the Postback I'm still on page 1.

What do I need to change to make this work?
 
On PageIndexChanged of the datagrid, set MyDataGrid.CurrentPageIndex to e.NewPageIndex and rebind the data to the grid

----- Alex wrote: ----

I ahve a DataGrid that is using selective data from a DataSet. I defined fo
each column how to bind
I'm using 10 rows disaplyed at the time. I have 11 items. Therefore a numbe
2 link shows up
However when clicking on it, after the Postback I'm still on page 1

What do I need to change to make this work
 
Back
Top