Version

Please note that this control has been retired and is now obsolete to the XamDataGrid control, and as such, we recommend migrating to that control. It will not be receiving any new features, bug fixes, or support going forward. For help or questions on migrating your codebase to the XamDataGrid, please contact support.

Column Chooser Dialog Window

The column chooser dialog window displays the columns collection for a particular ColumnLayout. It displays all ColumnBase objects in its collection, including ColumnLayout objects. It also displays check boxes next to each column; the check box is unchecked if that particular column is hidden. Your end user can toggle a column’s visibility by selecting the corresponding check box.

The column chooser dialog window organizes the column headers based on the column order in the xamGrid control; however, the order of the column headers can be changed when your end user drags and drops the column using the icon displayed to the left of the check box within the column chooser dialog window. As your end user reorders the columns within the column chooser dialog window, they are also reordered within the xamGrid control.

Note
Note:

If there are scrollbars within the column chooser dialog window, dragging an item above the column chooser dialog window will cause the list to scroll up, and dragging the item below the column chooser dialog window will cause the list to scroll down. Clicking the ESC key while dragging an item will restore that item to its original location.

The text displayed for a column in the column chooser dialog window comes from the ColumnBase object’s DisplayName property. This is a read-only property which first looks to see if the HeaderText property is set. If it is, it uses that value; otherwise it will use the ColumnKey property’s value.

You can also disable check boxes in the column chooser dialog window so that your end user cannot hide a particular column. For more information, see the Prevent Columns from Being Hidden topic.

The following screenshot displays a column chooser dialog window.

xamGrid columnChooser2.png
  1. Hidden Column

  2. Icon used to reorder columns