ShowInFieldChooser Property
Description
Indicates if a column will appear in the FieldChooser when the column is hidden or in the "Group By Box."
Property Type
Read-write property
Syntax (Visual Basic)
Public Property ShowInFieldChooser() As Boolean
Remarks
When a column is hidden or added to the "Group By Box," it will be automatically added to the FieldChooser unless the ShowInFieldChooser property is set to FALSE.
If you would like to have a hidden column that the user cannot access and you enable the FieldChooser, then you will need to set the ShowInFieldChooser property to FALSE. By default, this property is TRUE.
Example
Remove Column from FieldChooser (Visual Basic)
This sample illustrates how to keep the column from appearing in the FieldChooser when the column is hidden or in the Group By Box.
' 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
' You must set ShowInFieldChooser to False to keep the column from appearing in the
' Field chooser when the column is not visible or is in the "Group by Box"
Column.ShowInFieldChooser = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.