Skip to main content

IWebGridColumn.VisibleIndex Property

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

Namespace: DevExpress.Web.Internal

Assembly: DevExpress.Web.v24.2.dll

Declaration

int VisibleIndex { get; set; }

Property Value

Type Description
Int32

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

Remarks

If the VisibleIndex property is set to -1, the column is hidden. The column’s IWebGridColumn.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.

Example:

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