Skip to main content

ColumnBase.VisibleIndex Property

Gets or sets the column’s position among visible columns. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(-1, Handler = "OnVisibleIndexChanged")]
public int VisibleIndex { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the column’s position among visible columns.

Remarks

A column’s visible order doesn’t correspond to its position within the grid’s DataControlBase.Columns collection. The column’s visual position is specified by its VisibleIndex property. The column, whose VisibleIndex property value is set to 0 is leftmost within a grid, etc.

Note

The VisibleIndex of the hidden columns (i.e. columns whose ColumnBase.Visible property is set to false) is -1.

See Also