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