Syncfusion.SfDataGrid.XForms
Example 
Syncfusion.SfDataGrid.XForms Namespace > SfDataGrid Class : AllowTriStateSorting Property

AllowTriStateSorting Property

Gets or sets a value indicating whether to enable tri-state sorting or not. By enabling the tri-state sorting in the SfDataGrid, the data can be sorted in three states : ascending, descending and unsorted.
Syntax
public bool AllowTriStateSorting {get; set;}

Property Value

true if tri-state sorting is enabled, otherwise false. The default value is false.
Remarks
SfDataGrid also allows you to unsort the data in the original order by clicking the header again after sorting to descending order by setting the AllowTriStateSorting property to true.
Example
dataGrid.AllowTriStateSorting = true;
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.1451.0.38

See Also