allowSorting property

bool allowSorting
finalinherited

Decides whether user can sort the column simply by tapping the column header.

Defaults to true.

This is applicable only if the SfDataGrid.allowSorting is set as true.

See also:

  • SfDataGrid.allowSorting – which allows users to sort the columns in SfDataGrid.
  • DataGridSource.sortedColumns - which is the collection of SortColumnDetails objects to sort the columns in SfDataGrid.
  • DataGridSource.sort - call this method when you are adding the SortColumnDetails programmatically to DataGridSource.sortedColumns.

Implementation

final bool allowSorting;