Syncfusion.SfDataGrid.XForms
Example 

AllowSorting Property (SfDataGrid)

Gets or sets a value indicating whether to enable/disable sorting in SfDataGrid. When AllowSorting is set as true, the user can sort the data simply by tapping the column header he wishes to sort. SfDataGrid also allows the user to programmatically sort the column by adding the to the SortColumnDescriptions collection.
Syntax
public bool AllowSorting {get; set;}

Property Value

True if sorting is enabled, otherwise false. The default value is false.
Remarks
SfDataGrid allows to sort the data by setting the AllowSorting as true. The user can sort the data by just tapping the column header he wishes to sort or programmatically sort the column by adding the to the SortColumnDescriptions collection. Once sorting is applied, the SfDataGrid shows a sort icon in the respective column header indicating the direction of sorting.
Example
dataGrid.AllowSorting = true;
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 16.3451.0.21

See Also