You can skip the hidden columns in the ColumnChooser by writing a custom ColumnChooser class extending from IColumnChooser and removing the hidden columns from the Children collection. This change can be done by overriding the OnApplyTemplate method of the CustomColumnChooser class.
Refer the below code example in which the hidden columns are removed from the ColumnChooser by inheriting and implementing the IColumnChooser interface.
A new instance of the CustomColumnChooser is created by passing the dataGrid as a parameter and is shown in view.
Note that the hidden columns are not displayed in the ColumnChooser window.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|