how can i have a ultragrid with 3-way sorting on every columns? I mean :
a. Ascendiing -Indicated by default ascending SortIndicator.
b. Descending- Indicated by default descending SortIndicator.
c. No Sort- UnSort the column.
Note: I have tried BeforeSortChanged Event but i had 2 problems:
-
I could not get the previous column sort indicator to find out when
should i disable sorting. -
I have got an Exception where it is saying that we can’t change
SortIndicator in BeforeSortChange Event
I solved my problem by using UIElement.GetContext() to find clicked column in Mouse Up event handler of my grid and then i checked and changed the sortIndicator property of that column to what i want.
Edit :