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.v23.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
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 |
---|---|
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ColumnAutoWidth property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.