Beginners question about DataGrid and page selection

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top