Back to Devexpress

GanttColumnBase.MinWidth Property

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

latest2.4 KB
Original Source

GanttColumnBase.MinWidth Property

Specifies the column’s minimum width.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(0)]
public int MinWidth { get; set; }
vb
<DefaultValue(0)>
Public Property MinWidth As Integer

Property Value

TypeDefaultDescription
Int320

The minimum width.

|

Remarks

Use the MinWidth property to specify the minimum width of an individual column.

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ... >
    // ...
    <SettingsTaskList Width="45%">
        <Columns>
            <dx:TaskDataColumn TaskField="Title" MinWidth="160" />
            // ...
        </Columns>
    </SettingsTaskList>
</dx:ASPxGantt>

To specify the minimum width for all columns in the task list, use the ColumnMinWidth property.

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ... >
    // ...
    <SettingsTaskList ColumnMinWidth="50" />
</dx:ASPxGantt>

Examples

Online Demos

See Also

ASPxGantt - 'How To' Examples

GanttColumnBase Class

GanttColumnBase Members

DevExpress.Web.ASPxGantt Namespace