Infragistics(R) NetAdvantage(R) Windows Forms
ColumnChooserEnabled Property
See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridLayout Class : ColumnChooserEnabled Property

This specifies that the column chooser user interface is enabled for this UltraGrid. The UltraGrid uses this as a hint to let the user hide columns by dragging and dropping them outside of the UltraGrid and also unhide an explicitly hidden group-by column by dragging and dropping it over the column headers.

Syntax

Visual Basic (Declaration) 
Public Property ColumnChooserEnabled As Infragistics.Win.DefaultableBoolean
C# 
public Infragistics.Win.DefaultableBoolean ColumnChooserEnabled {get; set;}

Remarks

This specifies that the column chooser user interface is enabled for this UltraGrid. The UltraGrid uses this as a hint to let the user hide columns by dragging and dropping them outside of the UltraGrid and also unhide an explicitly hidden group-by column by dragging and dropping it over the column headers.

The UltraGrid supports a built in user interface element that the user can use to display the column chooser dialog from whithin the UltraGrid. You can enable this ui element by setting the UltraGridOverride.RowSelectorHeaderStyle to ColumnChooserButton. You can also externally display column chooser dialog by using the UltraGridBase.ShowColumnChooser method or instantiating a ColumnChooserDialog form and displaying it.

You can also create custom column chooser dialog using the UltraGridColumnChooser. To do so create a form and put a UltraGridColumnChooser onto it along with any other custom user interface elements.

This property is resolved to True if the UltraGrid determines that a column chooser user interface is enabled. Column chooser is considered to be enabled if the UltraGridOverride.RowSelectorHeaderStyle is set to ColumnChooserButton or a column chooser dialog has been displayed at least once. If neither of these conditions are met then this property is resolved to False. When it's resolved to False the user can not hide a column by dragging and dropping it outside of the UltraGrid. Also the user can not unhide a hidden column (a column whose UltraGridColumn.Hidden property has been explicitly set to True.

See Also