Column Chooser
The Column Chooser enables end-users to show and hide columns from the View at runtime via drag-and-drop. Dragging a column's header and dropping it onto the Column Chooser hides the column. To show the column, drag its header from the Column Chooser back to the View.
#Column Chooser Functionality
By default, the Column Chooser displays headers of hidden columns. A column is hidden if its BaseColumn.Visible property is set to false. If you don't want to display a hidden column within the Column Chooser, set the column's ColumnBase.ShowInColumnChooser property to false.
To access the collection of columns whose headers are displayed within a Column Chooser, use the DataViewBase.ColumnChooserColumns property.
Tip:
- Use a column's ColumnBase.ColumnChooserHeaderCaption property to specify the column's caption, when its header is displayed within a Column Chooser.
#Showing and Hiding
To show the Column Chooser, use the DataViewBase.ShowColumnChooser method. After the Column Chooser has been shown, the DataViewBase.ShownColumnChooser event is raised.
To hide the Column Chooser, call the DataViewBase.HideColumnChooser method. After the Column Chooser has been hidden, the DataViewBase.HiddenColumnChooser event is raised.
To determine whether the Column Chooser is displayed within a View or not, use the DataViewBase.IsColumnChooserVisible property.