GridDataColumnSettings.AllowSort Property
Specifies whether a user can sort data by column (or row for ASPxVerticalGrid) values.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default |
|
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
Specify the AllowSort
property to control sorting at the column level.
If the column’s AllowSort
property is set to Default
, the control determines the column’s behavior at the control level, based on the ASPxGridBehaviorSettings.AllowSort property value.
<dx:ASPxGridView ID="grid" runat="server" AutoGenerateColumns="false">
<SettingsBehavior AllowSort="true">
<Columns>
<dx:GridViewDataColumn FieldName="ContactName" SortIndex="2" SortOrder="Ascending" >
<Settings AllowSort="false"/>
</dx:GridViewDataColumn>
<%--...--%>
</Columns>
</dx:ASPxGridView>
For more information on the sort mode in a particular control, refer to the following topics: