Two way sorting in GridView using Object Data Source

1.7k views Asked by At

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.

1

There are 1 answers

3
Victor On

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