GridDataColumnSettings.AllowSort Property
Gets or sets whether the column’s (row’s for ASPxVerticalGrid) values can be sorted.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v21.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | One of the DefaultBoolean enumeration values. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The default behavior determined by the control’s logic. |
Property Paths
You can access this nested property as listed below:
Remarks
If the AllowSort property is set to Default, the sorting availability is controlled by the control’s ASPxGridBehaviorSettings.AllowSort property.
Note
The grouping functionality does not work if the AllowSort property is set to false.
Example
<dx:ASPxGridView ID="grid">
<SettingsBehavior AllowSort="true">
<Columns>
<dx:GridViewDataColumn FieldName="ContactName" SortIndex="2" SortOrder="Ascending" >
<Settings AllowSort="false" SortMode="DisplayText" />
</dx:GridViewDataColumn>
...
</Columns>
</dx:ASPxGridView>
Online Demo
See Also