DataControlBase.AutoWidth Property
Gets or sets whether column widths are automatically changed so that the total column width matches the grid width.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true to automatically change column width; otherwise, false. |
#Remarks
If the AutoWidth property is set to true, when a user changes a column’s width, the GridControl changes widths of other columns.
Use the ColumnBase.ActualWidth property to obtain the column width.
If the automatic column width calculation is disabled, you can use the ColumnBase.Width property to specify a column’s width. If the total columns width exceeds the GridControl‘s width, a horizontal scrollbar is displayed.