Sign in Join
FPDoc Onlineexperiment

TCustomDrawGrid.Row property

Member of TCustomDrawGridpublicIn unit Grids

Row number for the selected grid cell.

Declaration

pascal
property Row:;

Description

Row is an Integer property which contains the row index for the currently selected cell in the grid control. The value in Row is zero-based, and cannot exceed the value RowCount-1.

Setting a new value for the property causes the values in Col and Row to be validated against the ColCount and RowCount for the grid. Error checking is used, and an exception may be raised if the new property value is not in the limits for the control. The selected cell in the control is changed to (or extended to) the new values in the Col and Row properties. The Click method is called to signal the OnClick event handler (when assigned) if the cell is not already selected or displaying a cell editor.

Use Col to determine the column number for the currently selected cell in the grid control.

This description is the one of Grids.TCustomGrid.Row.

See also

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