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.SortIndex Property

Specifies the column's indexed position among sorted columns.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

[DefaultValue(-1)]
public virtual int SortIndex { get; set; }
<DefaultValue(-1)>
Public Overridable Property SortIndex As Integer

Property Value

Type Default Description
Int32

-1

The column's index.

Remarks

The ASPxGantt allows you to sort data by multiple columns. The first sorted column gets the 0 sort index. The next sorted columns get the 1 index, etc. The SortIndex property allows you to specify the column's sort index.

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

Use the AllowSort (for individual column) or AllowSort (for all columns) properties to allow or deny users to sort data in the Gantt control.

Examples

Online Demos

See Also