All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GanttDataColumn.AllowSort Property

Specifies whether users can sort columns.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v20.1.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean AllowSort { get; set; }
<DefaultValue(DefaultBoolean.Default)>
Public Overridable Property AllowSort As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

One of the enumeration values.

Remarks

The ASPxGantt allows you to sort data by multiple columns.

Set the AllowSort property to True or False to allow or deny users to sort data in an individual column. If the property value is Default, the setting depends on the AllowSort property value.

Example

Set a column's AllowSort property to true. Use the SortIndex and SortOrder properties to specify the column's sort index and order.

<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsTasksList >
        <Columns>
            <dx:GanttTextColumn FieldName="Title" AllowSort="True" SortIndex="1" SortOrder="Ascending" />
            <dx:GanttTextColumn FieldName="Resource" AllowSort="True" SortIndex="2" SortOrder="Ascending" />
        </Columns>
    </SettingsTasksList>
</dx:ASPxGantt>

'How To' Examples

Online Demos

See Also