Table of Contents

TTMSFNCDataGrid.LoadFromJSONStreamData Method

Loads data from a JSON stream using the specified encoding.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Overloads

Overload 1

Loads data from a JSON stream using the specified encoding.

procedure LoadFromJSONStreamData(AStream: TStream; AEncoding: TEncoding; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil ); overload; virtual;

Parameters

Name Description
AStream Stream containing JSON data.
AEncoding Text encoding used to read the stream.
ARowDataName JSON key whose value is the array of row objects.
AColumnDataName JSON key within each row object that holds column values.
AColumnNames Array of JSON key names mapped to grid column indices.

Overload 2

Loads data from a JSON stream using the default encoding.

procedure LoadFromJSONStreamData(AStream: TStream; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil ); overload; virtual;

Parameters

Name Description
AStream Stream containing JSON data.
ARowDataName JSON key whose value is the array of row objects.
AColumnDataName JSON key within each row object that holds column values.
AColumnNames Array of JSON key names mapped to grid column indices.