paging gridview

liunx

Guest
I've go a problem with paging in my grid.
A dataset fills up the grid. I have pagesize set to 10. When I have 15 items eg. he will displa the first 10 items. When i click next page he will display the 5 next items, and the first 5 items again. He seems to be in some sort of cycle. How can I say that he has to stop after the 15 items?

thxHI Diedtje,

On Page_Load event just clear dataset then bind the gridview again with data.

like this
objDS.Clear(); // clear dataset
myGridView.DataSource = objDS;
myGridView.DataBind();


hope this will solve your problem

Cheers
 
Back
Top