I have a GridView, with sorting and paging enabled.
The GridView is bound in code-behind, where I also have the sorting
and paging event handlers.
Both sorting and paging seem to be working fine, but the problem is,
if I click on a page index, the sorting order is reversed. To make it
clear, suppose my GridView has 4 pages like below:
If I click on the table header, the data gets sorted, fine, like so:
But, if I then click on the page index 2, I see this:
Whereas, I am expecting to see this:
See the problem? How to overcome this?
I'm using vb.net Thanks.