I am using Object Data Source to bind data in the gridview. I have set the property AllowSorting=true. While running the application, I could sort the data only in ascending order. Is there any way to achieve two way sorting in gridview ie. both ascending and descending on successive clicks ?.
Please give me a suggestion to solve this issue. Thanks in advance.
there are many questions similar to this one.
here:
GridView sorting: SortDirection always Ascending
and here:
Gridview: capturing sort direction
and many more. please do a search