Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCell6 ColIndex

ColIndex

Determine column index of cell.

pas
property ColIndex: Integer read GetColIndex;

Remarks

The index is not re-calculated automatically on each read of the property, but it is set after user access to Cell property of TNextGrid.

Example:

pas
var
  MyCell: TNxCell6;
begin
  MyCell := NextGrid61.Cell[2, 2];
  ShowMessage(IntToStr(MyCell.ColIndex)); // will show 2

  NextGrid61.Cell[3, 2].AsString := 'Test';
  ShowMessage(IntToStr(MyCell.ColIndex)); // will show 3

Sign in