Back to Devexpress

GanttDataColumn.AllowSort Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttdatacolumn.md

latest2.9 KB
Original Source

GanttDataColumn.AllowSort Property

Specifies whether users can sort columns.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

One of the enumeration values.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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.

aspx
<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

ASPxGantt - 'How To' Examples

GanttDataColumn Class

GanttDataColumn Members

DevExpress.Web.ASPxGantt Namespace