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
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;
Related GitHub Examples
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.