Back to Devexpress

GanttTaskListSettings.ColumnMinWidth Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantttasklistsettings-45e31e41.md

latest3.2 KB
Original Source

GanttTaskListSettings.ColumnMinWidth Property

Specifies the columns’ minimum width.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Int320

The columns’ minimum width.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ColumnMinWidth
ASP.NET MVC ExtensionsGanttSettings

.SettingsTaskList .ColumnMinWidth

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsTaskList .ColumnMinWidth

|

Remarks

Use the ColumnMinWidth property to specify the minimum width for all columns in the Gantt.

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ... >
    <SettingsTasksList Width="45%" ColumnMinWidth="50" >
        //...
    </SettingsTasksList>
</dx:ASPxGantt>

To specify the minimum width for an individual column, use the MinWidth property.

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ... >
    <SettingsTasksList Width="45%" >
        <Columns>
            <dx:GanttTextColumn FieldName="Subject" Width="360" MinWidth="100" />
            <dx:GanttDateTimeColumn FieldName="StartDate" Width="100" MinWidth="70" />
        </Columns>
    </SettingsTasksList>
</dx:ASPxGantt>

Examples

Online Demos

See Also

ASPxGantt - 'How To' Examples

GanttTaskListSettings Class

GanttTaskListSettings Members

DevExpress.Web.ASPxGantt Namespace