TTMSFNCDataGridCellItem Class
Lightweight storage object for one grid cell: the raw value and its formatted display text.
API unit family: TMSFNCDataGridCell
Inherits from: TPersistent
Syntax
TTMSFNCDataGridCellItem = class(TPersistent)
class PASCALIMPLEMENTATION TTMSFNCDataGridCellItem : public System::Classes::TPersistent
Remarks
The grid creates cell items on demand and stores them in the row's TTMSFNCDataGridRows dictionary, which owns them; do not free an item obtained from the grid. Read an item with TTMSFNCCustomDataGrid.CellData; read or write the value itself with TTMSFNCCustomDataGrid.Cells.
Cells that need more than a value (a control, bitmap, comment, merge information, a per-cell layout, and so on) use the TTMSFNCDataGridCellItemExtended descendant. Test for it with IsExtendedCell.
Properties
| Name | Description |
|---|---|
| DisplayValue | Formatted text the grid paints for this cell. |
| Invalid | When True, DisplayValue is out of date and is regenerated from Value the next time the grid reads the cell. |
| Value | Raw value stored for this cell (TValue, or JSValue on the web framework). |
Methods
| Name | Description |
|---|---|
| Clear | Empties Value and DisplayValue and marks the item Invalid so the display text is rebuilt. |