Developer

Cell

Access TCell object at specified location (Column and Row index) inside grid.

property Cell[ACol, ARow: Integer]: TCell read GetCell;

Remarks:


Cell property is most important property of NextGrid component. It provide access to any TCell object inside 2-dimensional array of cells. Each TCell include own properties such as AsString, AsBoolean, Color, Hint etc.

There is also a Cells property which access to AsString property of TCell.

Example:


NextGrid1.Cell[2, 2].AsFloat := 3.14; NextGrid1.Cell[4, NextGrid1.LastAddedRow].AsBoolean := True; NextGrid1.Cell[NxTextColumn1.Index, NextGrid1.SelectedRow].AsString := Edit1.Text;

See also