Back to Devexpress

GridView.AutoFillColumn Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-5be1231a.md

latest2.6 KB
Original Source

GridView.AutoFillColumn Property

Gets or sets the column that will fill the empty GridView space.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Behavior")]
public virtual GridColumn AutoFillColumn { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Behavior")>
Public Overridable Property AutoFillColumn As GridColumn

Property Value

TypeDefaultDescription
GridColumnnull

A GridColumn that will fill the empty GridView space.

|

Remarks

If the GridOptionsView.ColumnAutoWidth setting is disabled, all grid columns gain a fixed width. Utilize the AutoFillColumn property to make any column an auto-fill one. An auto-fill column is automatically resized to occupy any free space the GridView provides.

If the total width of all grid column (including the auto-fill column) is greater than the GridView width, an auto-fill column keeps its width and the View displays a scroll bar to scroll through columns.

See Columns to learn more.

See Also

Width

ColumnAutoWidth

Grid Columns

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace