Class ColumnChooserPopup
Represents a pop-up control that hosts the ColumnChooser control which is used to add or remove columns to the SfDataGrid dynamically.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Interactivity
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class ColumnChooserPopup : SfForm, IThemeProvider, IVisualStyle
Constructors
ColumnChooserPopup(SfDataGrid)
Initializes a new instance of the ColumnChooserPopup class.
Declaration
public ColumnChooserPopup(SfDataGrid sfDataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfDataGrid | Instance of the SfDataGrid for which the column chooser is created. |
Properties
ColumnChooser
Gets or sets the ColumnChooser control for the ColumnChooserPopup.
Declaration
public ColumnChooser ColumnChooser { get; set; }
Property Value
Type |
---|
ColumnChooser |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
Overrides
OnCancelButtonClick(Object, EventArgs)
Occurs when the cancel button is clicked.
Declaration
protected virtual void OnCancelButtonClick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The object of the sender. |
System.EventArgs | e | An System.EventArgs that contains event data. |
OnOKButtonClick(Object, EventArgs)
Occurs when the OK button is clicked.
Declaration
protected virtual void OnOKButtonClick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The object of the sender. |
System.EventArgs | e | An System.EventArgs that contains event data. |
Show()
Display the column chooser control to the center of the Parent Form.
Declaration
public void Show()
Show(Point)
Display the column chooser control in the specified location.
Declaration
public void Show(Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | location | Location to display the column chooser control. |
Show(IWin32Window)
Display the column chooser control to the center of the Parent Form.
Declaration
public void Show(IWin32Window owner)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.IWin32Window | owner | Any object that implements System.Windows.Forms.IWin32Window and represents the top-level window that will own this form. |