Skip to main content
Table of Contents

TTMSFNCDataGridBase.RefreshData Method

Invalidates the cached display value of one cell so it is fetched and formatted again.

API unit family: TMSFNCDataGridBase Declaring type: TTMSFNCDataGridBase

Overloads

Overload 1

Invalidates the cached display value of one cell so it is fetched and formatted again.

FMX.TMSFNCDataGridBase.hppPascalC++
procedure RefreshData(ACell: TTMSFNCDataGridCellCoord; AUpdate: Boolean = True); overload; virtual;
virtual void __fastcall RefreshData(const TTMSFNCDataGridCellCoord &ACell, bool AUpdate = true)/* overload */;

Remarks

The cell item is only marked invalid; its data is fetched again and its display value rebuilt the next time the cell is accessed. Use this after the underlying value source changed outside the grid, for example through a data adapter.

Parameters

Name Description
ACell The cell to refresh. Cells without stored data are ignored.
AUpdate When True (default), the operation is wrapped in BeginUpdate/EndUpdate so the grid recalculates and repaints afterwards (unless an outer update block is active). Pass False when you refresh many cells inside your own update block.

Overload 2

Invalidates the cached display values of all cells in a rectangular range.

FMX.TMSFNCDataGridBase.hppPascalC++
procedure RefreshData(ACellRange: TTMSFNCDataGridCellCoordRange; AUpdate: Boolean = True); overload; virtual;
virtual void __fastcall RefreshData(const TTMSFNCDataGridCellCoordRange &ACellRange, bool AUpdate = true)/* overload */;

Parameters

Name Description
ACellRange Inclusive range of cells to refresh, typically built with MakeCellRange.
AUpdate When True (default), the operation is wrapped in BeginUpdate/EndUpdate so the grid recalculates and repaints afterwards.

Overload 3

Invalidates the cached display values of every cell in the grid, including fixed cells.

FMX.TMSFNCDataGridBase.hppPascalC++
procedure RefreshData(AUpdate: Boolean = True); overload; virtual;
virtual void __fastcall RefreshData(bool AUpdate = true)/* overload */;

Parameters

Name Description
AUpdate When True (default), the operation is wrapped in BeginUpdate/EndUpdate so the grid recalculates and repaints afterwards.