Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.LoadFromFileData Method

Loads cell data from a file in the grid's own text format, as written by SaveToFileData, using the system default encoding.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Overloads

Overload 1

Loads cell data from a file in the grid's own text format, as written by SaveToFileData, using the system default encoding.

FMX.TMSFNCDataGrid.hppPascalC++
procedure LoadFromFileData(AFileName: string); overload; virtual;
virtual void __fastcall LoadFromFileData(System::UnicodeString AFileName)/* overload */;

Remarks

The file stores the grid dimensions, column widths and cell values; ColumnCount, RowCount and column widths are restored. Each value passes through OnLoadCellData.

Parameters

Name Description
AFileName Path of the file to load.

Overload 2

Loads cell data from a file in the grid's own text format, using the specified encoding.

FMX.TMSFNCDataGrid.hppPascalC++
procedure LoadFromFileData(AFileName: string; AEncoding: TEncoding); overload; virtual;
virtual void __fastcall LoadFromFileData(System::UnicodeString AFileName, System::Sysutils::TEncoding* AEncoding)/* overload */;

Parameters

Name Description
AFileName Path of the file to load.
AEncoding Text encoding used to read the file.