Skip to main content

WebColumnBase.VisibleIndex Property

Specifies the column’s position among visible columns in a web control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public virtual int VisibleIndex { get; set; }

Property Value

Type Default Description
Int32 -1

The column’s position among visible columns.


A column’s VisibleIndex property defines the column’s position among visible columns. To specify the visibility of a column, use the column’s Visible property.

The false value of the Visible property sets the VisibleIndex property to -1. If you change the VisibleIndex property value to non-negative, a web control sets the Visible property to true.

<dx:ASPxGridView ID="grid" runat="server" KeyFieldName="CustomerID">
        <dx:GridViewDataTextColumn FieldName="ContactName" VisibleIndex="1" />
        <dx:GridViewDataTextColumn FieldName="CompanyName" VisibleIndex="0" />
        <dx:GridViewDataTextColumn FieldName="City" VisibleIndex="3" />
        <dx:GridViewDataTextColumn FieldName="Region" Visible="false" />
        <dx:GridViewDataTextColumn FieldName="Country" VisibleIndex="2" />

Web Control - ColumnVisibility

See Also