Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MultiColumnHeader.SetSortingColumns

public void SetSortingColumns(int[] columnIndices, bool[] sortAscending);

Parameters

columnIndicesColumn indices of the sorted columns.
sortAscendingSorting order for the column indices specified.

Description

Sets multiple sorting columns and the associated sorting orders.

This function sets multiple sorting columns and the associated sorting orders. The first entry is the primary sorted column. It also triggers the sortingChanged event if the sorting state changes. You can input two empty arrays to clear the sorting columns so no sorting would happen.

See Also: SetSorting.

Did you find this page useful? Please give it a rating: