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

TValueListEditor.GetCells

Gets the value in Cells at the specified row and column numbers.

Declaration

Source position: valedit.pas line 162

protected function TValueListEditor.GetCells(

  ACol: Integer;

  ARow: Integer

):string; override;

Arguments

ACol

  

Column number to read in Cells.

ARow

  

Row number to read in Cells.

Function result

Value for the cell at the specified row and column number.

Description

GetCells is a String function used to get the value in the Cells property at the specified row and column numbers. GetCells extends the behavior from the ancestor class by using the Strings property as the source of data in the control.

When ACol contains 0 (the Key column), the Names property in Strings is used to get the value for the current row. When ACol contains 1 (the Value column), the ValueFromIndex method in Strings is used to get the value for the current row.

The return value is an empty string ('') when ARow is 0 (zero) and column titles are enabled in DisplayOptions. Use the TitleCaptions property to set the values displayed when DisplayOptions includes the value doColumnTitles.

See also

TValueListEditor.Strings

  

Stores the keys, values, and item definitions in the control.

TValueListEditor.TitleCaptions

  

Title captions used for columns in the control.

TStrings.Names

TStrings.ValueFromIndex


Version 4.0 Generated 2025-05-03 Home