Skip to main content
A newer version of this page is available. .
Tab

WebColumnBase.VisibleIndex Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(-1)]
public virtual int VisibleIndex { get; set; }

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;

The following code snippets (auto-collected from DevExpress Examples) contain references to the VisibleIndex property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also