Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SaveToStream procedure

Member of TCustomGridpublicIn unit Grids

Saves grid information to the specified stream.

Declaration

pascal
procedure SaveToStream(AStream: TStream); virtual

Description

SaveToStream is a method used to store information from the grid control to the TStream instance specified in AStream. SaveToStream creates a TXMLConfig class instance that is used to capture the layout, cell display settings, grid options, and range selections for the control.

SaveToStream calls the SaveContent method to generate the XML content for the grid control. The XML content is written to AStream using the WriteToStream method in TXMLConfig.

Use LoadFromStream to read the grid information stored in the stream.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.