Class FieldChooser
Provides mechanism to enable the field chooser option in GridGroupingControl.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class FieldChooser
Constructors
FieldChooser(GridGroupingControl)
Initializes a new instance of the FieldChooser class.
Declaration
public FieldChooser(GridGroupingControl tableControl)
Parameters
Type | Name | Description |
---|---|---|
GridGroupingControl | tableControl | The GridGroupingControl. |
FieldChooser(GridGroupingControl, GridColumnDescriptorCollection)
Initializes a new instance of the FieldChooser class.
Declaration
public FieldChooser(GridGroupingControl tableControl, GridColumnDescriptorCollection fields)
Parameters
Type | Name | Description |
---|---|---|
GridGroupingControl | tableControl | The GridGroupingControl. |
GridColumnDescriptorCollection | fields | The custom collection of fields to bind to FieldChooser. |
Fields
fieldChooserDropDownMenu
To initialize DropDownMenu.
Declaration
[Obsolete("This property is obsolete; use property ContextMenu instead")]
public ContextMenuStrip fieldChooserDropDownMenu
Field Value
Type |
---|
System.Windows.Forms.ContextMenuStrip |
fieldChooserToolStripMenuItem
To initialize ToolStripMenuItem.
Declaration
[Obsolete("This property is obsolete; use property Grid instead")]
public ToolStripMenuItem fieldChooserToolStripMenuItem
Field Value
Type |
---|
System.Windows.Forms.ToolStripMenuItem |
table
To initialize GridGroupingControl.
Declaration
[Obsolete("This property is obsolete; use property Grid instead")]
public GridGroupingControl table
Field Value
Type |
---|
GridGroupingControl |
Properties
ContextMenu
Gets the context menu to launch field chooser.
Declaration
public ContextMenuStrip ContextMenu { get; }
Property Value
Type |
---|
System.Windows.Forms.ContextMenuStrip |
ContextMenuItem
Gets the FieldChooser menu item.
Declaration
public ToolStripMenuItem ContextMenuItem { get; }
Property Value
Type |
---|
System.Windows.Forms.ToolStripMenuItem |
DeferLayoutUpdate
Gets or sets a value indicating whether Layout should be updated.
Declaration
public bool DeferLayoutUpdate { get; set; }
Property Value
Type |
---|
System.Boolean |
DisplayFields
Gets the custom field collection that bounds to field chooser.
Declaration
public GridColumnDescriptorCollection DisplayFields { get; }
Property Value
Type |
---|
GridColumnDescriptorCollection |
EnableColumnsInView
Gets or sets a value indicating whether the column names in the tree view dialog should be shown.
Declaration
public bool EnableColumnsInView { get; set; }
Property Value
Type |
---|
System.Boolean |
Grid
Gets the grid wired with field chooser.
Declaration
public GridGroupingControl Grid { get; }
Property Value
Type |
---|
GridGroupingControl |
Methods
fieldChooserToolStripMenuItem_Click(Object, EventArgs)
Used to set the appearance of the TreeViewAdv.
Declaration
public void fieldChooserToolStripMenuItem_Click(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source control. |
System.EventArgs | e | The System.EventArgs that contains the event data. |
UnWireGrid()
Unwires the FieldChooser from GridGroupingControl.
Declaration
public void UnWireGrid()