Xceed DataGrid for WPF v7.2 Documentation
ColumnChooserControl Class
Members 


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : ColumnChooserControl Class
Allows you to create your own custom column chooser for allowing end-users to select which columns should be visible and which should be hidden. If you use this feature, you can't use the default ColumnChooserContextMenu.
Syntax
'Declaration
 
<TemplatePartAttribute(Name="PART_VisibleColumns", Type=System.Windows.Controls.ItemsControl)>
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public NotInheritable Class ColumnChooserControl 
   Inherits ColumnChooserControlBase
'Usage
 
Dim instance As ColumnChooserControl
[TemplatePart(Name="PART_VisibleColumns", Type=System.Windows.Controls.ItemsControl)]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public sealed class ColumnChooserControl : ColumnChooserControlBase 
Example
See the Live Explorer demo for an example of how to use the ColumnChooserControl class to invoke a dialog box that allows the end user to decide which columns are visible from a large list.
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Xceed.Wpf.DataGrid.ColumnChooserControlBase
                        Xceed.Wpf.DataGrid.ColumnChooserControl

Requirements

See Also

Reference

ColumnChooserControl Members
Xceed.Wpf.DataGrid Namespace