[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TStringGridStrings

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents strings used as the cell values in TCustomStringGrid / TStringGrid.

## Declaration

Source position: grids.pas line 1724

`type TStringGridStrings = class(TStrings)`
`protected`
`function Get(); override;` |  | Gets the string at the specified index position.
`function GetCount; override;` |  | Gets the value for the Count property.
`function GetObject(); override;` |  | Gets the value for the indexed Objects property.
`procedure Put(); override;` |  | Sets the value for the indexed Strings property.
`procedure PutObject(); override;` |  | Sets the value for the indexed Objects property.
`public`
`constructor Create();` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`function Add(); override;` |  | Adds the specified string to the class instance.
`procedure Assign(); override;` |  | Stores property values from Source into the current class instance.
`procedure Clear; override;` |  | Removes all values for the column or row represented by the class instance.
`procedure Delete(); override;` |  | Deletes a value stored in the class instance.
`procedure Insert(); override;` |  | Inserts a value in the class instance.
`end;`

## Inheritance

`TStringGridStrings` |  | Represents strings used as the cell values in TCustomStringGrid / TStringGrid.
`TStrings`
?
`TObject`

## Description

TStringGridStrings is a TStrings descendant that implements the string container used to populate the cells in a TStringGrid instance. A temporary TStringGridStrings instance is created and used to store a new value assigned to the Cols or Rows property in TStringGrid.

## See also

TCustomStringGrid.Cols |  | Provides indexed access to the list of values for the specified column number.
TCustomStringGrid.Rows |  | Provides indexed access to the list of column values for the specified row number.
TStringGrid |  | Implements a grid specialized for textual content.