TTMSFNCCustomDataGridColumnsEditor Class
Base class for the columns editor dialog, which lets end users show and hide grid columns at run time.
API unit family: TMSFNCDataGridColumnsEditor
Inherits from: TTMSFNCCustomDialog
Syntax
TTMSFNCCustomDataGridColumnsEditor = class(TTMSFNCCustomDialog)
class PASCALIMPLEMENTATION TTMSFNCCustomDataGridColumnsEditor : public TTMSFNCCustomDialog
Remarks
Each list item shows the column's display name and its current display index. Depending on TTMSFNCDataGridColumnsEditorOptions.Mode the list contains only hidden columns (column-chooser mode, drag-and-drop between list and grid) or all columns with visibility check boxes.
A grid creates its own instance on demand (TTMSFNCCustomDataGrid.ColumnsEditor), owned and freed by its root renderer, and shows it non-modally through TTMSFNCCustomDataGrid.ShowColumnsEditor. A separately dropped component must have Renderer assigned before Execute.
Methods
| Name | Description |
|---|---|
| Execute | Opens the dialog. |
| UpdateList | Rebuilds the list from the current columns of Renderer. |