[]
Specifies how grid columns should be sorted.
[Flags]
public enum SortFlags
This enumeration contains flags that can be combined to customize the sorting process.
For example, the code below sorts two grid columns ignoring case.
// C#
SortFlags order = SortFlags.Ascending | SortFlags.IgnoreCase;
_flex.Sort(order, col1, col2);
' VB
Dim order As SortFlags = SortFlags.Ascending Or SortFlags.IgnoreCase
_flex.Sort(order, col1, col2)
Name | Description |
---|---|
AsDisplayed | Sort using the string representation of the data. In this mode, "100" appears before "2". |
Ascending | Sort in ascending order. |
Descending | Sort in descending order. |
IgnoreCase | Ignore case when sorting strings. |
None | Do not sort. This setting is useful for skipping certain columns when sorting column ranges. |
UseColSort | Use the flags stored in the Sort property of individual Column objects. |