maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-84fca800.md
Gets or sets whether the grid allows data sorting by multiple columns or by a single column only. This is a bindable property.
Namespace : DevExpress.Maui.DataGrid
Assembly : DevExpress.Maui.DataGrid.dll
NuGet Package : DevExpress.Maui.DataGrid
public GridSortMode SortMode { get; set; }
| Type | Default | Description |
|---|---|---|
| GridSortMode | Single |
A GridSortMode enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Single |
Grid data can be sorted only by a single column at a time.
| | Multiple |
Grid data can be sorted by multiple columns.
|
To control whether sorting is available for users, use the DataGridView.AllowSort or GridColumn.AllowSort property.
Refer to the following topic for more information about the sorting functionality in the Data Grid View: How to Sort Rows in DevExpress Data Grid for .NET MAUI.
The following example enables multi-column sorting in a grid:
<dxg:DataGridView SortMode="Multiple">
<!--...-->
</dxg:DataGridView>
See Also