TTMSFNCDataGridInplaceEditorHelper Class
Extends the inplace editor base type with type-check helpers (
Is*) and safe-cast helpers (As*) for each built-in editor kind, plus aDataValueproperty for reading and writing the cell value directly from event handlers.
API unit family: TMSFNCDataGridRenderer
Syntax
TTMSFNCDataGridInplaceEditorHelper = class
Properties
| Name | Description |
|---|---|
| DataValue | The cell value that the inplace editor is currently editing. Reading returns the stored cell value; writing updates it without closing the editor. |
Methods
| Name | Description |
|---|---|
| AsColorPicker | Casts the inplace editor to TTMSFNCDataGridColorPicker. Call only after IsColorPicker returns True. |
| AsComboBox | Casts the inplace editor to TTMSFNCDataGridComboBox. Call only after IsComboBox returns True. |
| AsComboEdit | Casts the inplace editor to TTMSFNCDataGridComboEdit. Call only after IsComboEdit returns True. |
| AsDatePicker | Casts the inplace editor to TTMSFNCDataGridDatePicker. Call only after IsDatePicker returns True. |
| AsEdit | Casts the inplace editor to TTMSFNCDataGridEdit. Call only after IsEdit returns True. |
| AsHTMLEditor | Casts the inplace editor to TTMSFNCDataGridHTMLEditor. Call only after IsHTMLEditor returns True. |
| AsMemo | Casts the inplace editor to TTMSFNCDataGridMemo. Call only after IsMemo returns True. |
| AsSpinBox | Casts the inplace editor to TTMSFNCDataGridSpinBox. Call only after IsSpinBox returns True. |
| AsTimePicker | Casts the inplace editor to TTMSFNCDataGridTimePicker. Call only after IsTimePicker returns True. |
| AsTrackBar | Casts the inplace editor to TTMSFNCDataGridTrackBar. Call only after IsTrackBar returns True. |
| IsColorPicker | Returns True when the active inplace editor is a color picker. |
| IsComboBox | Returns True when the active inplace editor is a drop-down combo box. |
| IsComboEdit | Returns True when the active inplace editor is an editable combo box (combined text entry and drop-down). |
| IsDatePicker | Returns True when the active inplace editor is a date picker. |
| IsEdit | Returns True when the active inplace editor is a plain text edit control. |
| IsHTMLEditor | Returns True when the active inplace editor is an HTML rich-text editor. |
| IsMemo | Returns True when the active inplace editor is a multi-line memo. |
| IsSpinBox | Returns True when the active inplace editor is a numeric spin box. |
| IsTimePicker | Returns True when the active inplace editor is a time picker. |
| IsTrackBar | Returns True when the active inplace editor is a track bar (slider). |