Tab
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

Declaration

[DefaultValue(-1)]
public virtual int VisibleIndex { get; set; }
<DefaultValue(-1)>
Public Overridable Property VisibleIndex As Integer

Property Value

Type Default Description
Int32

-1

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 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.

Example:


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