GridOptionsView.ColumnAutoWidth Property
Gets or sets a value specifying whether column widths are automatically modified so that the total columns’ width matches the View’s width.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ColumnAutoWidth { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true to enable the column auto width feature; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to ColumnAutoWidth |
---|---|
AdvBandedGridView |
|
BandedGridView |
|
GridView |
|
Remarks
Example:
If a column’s OptionsColumn.FixedWidth option is enabled, the column’s width is not changed when applying the auto width feature.
See Columns to learn more.