views:

70

answers:

2

hi have a gridview with sortexpression setted in columns. If i click on column title the table is ordered by asc, if i click another time on title column the table doesn't change.

I want that on second click the table is ordered by desc.

How can i do it?

thanks

A: 

One way of doing it is to create an extension of the gridview. Here is an article that can give you some ideas.

MadMAxJr
A: 

See this Stackoverflow post, "Gridview sorting: SortDirection always Ascending".

David Glass