Class ColumnChooser
Represents a Column Chooser Window for SfDataGrid.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class ColumnChooser : ChromelessWindow, IColumnChooser, IComponentConnectorConstructors
ColumnChooser(SfDataGrid)
Initializes a new instance of ColumnChooser class.
Declaration
public ColumnChooser(SfDataGrid dataGrid)Parameters
| Type | Name | Description | 
|---|---|---|
| SfDataGrid | dataGrid | The SfDataGrid. | 
Fields
WaterMarkTextProperty
Identifies the Syncfusion.UI.Xaml.Grid.ColumnChooser.WaterMarkText dependency property.
Declaration
public static readonly DependencyProperty WaterMarkTextPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.ColumnChooser.WaterMarkText dependency property.
Properties
DataGrid
Gets or sets the reference to the SfDataGrid instance for the Column Chooser.
Declaration
protected SfDataGrid DataGrid { get; set; }Property Value
| Type | Description | 
|---|---|
| SfDataGrid | The SfDataGrid instance. | 
WaterMarkText
Gets or sets the water mark text for empty ColumnChooser window.
Declaration
public string WaterMarkText { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | A string that displays the water mark text for column chooser window. The default value is  | 
Methods
AddChild(GridColumn)
Adds the specified column to the children of column chooser window.
Declaration
public virtual void AddChild(GridColumn column)Parameters
| Type | Name | Description | 
|---|---|---|
| GridColumn | column | The corresponding column to add children for the column chooser window. | 
GetControlRect()
Gets the display rectangle for column chooser window.
Declaration
public virtual Rect GetControlRect()Returns
| Type | Description | 
|---|---|
| System.Windows.Rect | The display rectangle for column chooser window. | 
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()OnApplyTemplate()
Builds the visual tree for the Column Chooser window when a new template is applied.
Declaration
public override void OnApplyTemplate()Overrides
RemoveChild(GridColumn)
Removes the specified child column from the column chooser window.
Declaration
public virtual void RemoveChild(GridColumn column)Parameters
| Type | Name | Description | 
|---|---|---|
| GridColumn | column | The corresponding column to remove child from the column chooser window. |