Visible Property
Description
Specifies whether the column is visible in the GridControl.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Visible() As Boolean
Remarks
- If
TRUE, the column will be visible in the GridControl. - If
FALSE, the column will not be visible in the GridControl. The column will then appear in the FieldChooser where it can be dragged and dropped back into the GridControl, and the Visible property is automatically set toTRUE. - If
FALSE, the column will still appear in the GridControl's collection of columns.
Example
Making a Column Invisible / Hiding a Column (Visual Basic)
This sample illustrates how to hide a column.
' Add this to the General code section
Const COLUMN_NAME = 1
' This code is placed in the Form_Load event
Dim Column As GridColumn
Set Column = wndGridControl.Columns.Add(COLUMN_NAME, "Name", 300, True)
' Setting the visibility to FALSE will cause the column to appear in the FieldChooser
Column.Visible = False
' Or you can access the column this way
wndGridControl.Columns(COLUMN_NAME).Visible = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.