SetSortColumns() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the SetSortColumns() method to apply a comma-separated list or string array of sort columns to the grid and to sort the grid according to the specified columns.
Syntax
SetSortColumns(sortColumn[, sortColumnDirection]);
Parameters
sortColumn
A comma-separated list (with no spaces after commas) or a string array of columns by which to sort the grid.
sortColumnDirection
An array of Xceed.Grid.SortDirection values that defines the sort column direction as either ascending or descending. The default sort direction is ascending. You can use this parameter only if sortColum is a string array.