Paging and Sorting in Datagrid

B

Billy Jacobs

I have a datagrid control in a web application in which I
have both paging and sorting enabled. The sorting works
only on the current page. If I am on page 1 and sort by
any field, the page displays the records sorted properly.
If I go to the next page the records on that page are not
sorted.

The datagrid is bound to a dataview. I set the sort on
the dataview in the sort event.

I have also tried to set the sort on the datagrid in the
page changed event using a session variable set in the
sort event but it still shows any page except the page I
sort, unsorted.

Any idea what I am not doing?

Billy Jacobs
 

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

Top