TTMSFNCCustomDataGrid.GetCellObjectForCell Method
Returns the live cell object currently rendered for a cell.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function GetCellObjectForCell(ACell: TTMSFNCDataGridCellCoord): TTMSFNCDataGridCell;
TTMSFNCDataGridCell* __fastcall GetCellObjectForCell(TTMSFNCDataGridCellCoord ACell);
Remarks
The object is owned by the grid and recycled whenever the display is rebuilt (scrolling, resizing, data changes). Do not free it and do not keep a reference beyond the current call.
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate to look up. |
Returns
The rendered cell object, or nil when the cell is not currently displayed or either index is -1.