A newer version of this page is available. Switch to the current version.

WebColumnBase.VisibleIndex Property

Gets or sets the column's position among the visible columns within a web control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public virtual int VisibleIndex { get; set; }
Public Overridable Property VisibleIndex As Integer

Property Value

Type Default Description


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


If the VisibleIndex property is set to -1, the column is hidden. The column's WebColumnBase.Visible property is automatically set to false, since these property values are synchronized.

When adding columns in code, specify its position among the visible columns after the column has been added to the collection.


GridViewDataColumn col = new GridViewDataColumn("CategoryName", "New Column");
col.VisibleIndex = 0;
See Also