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

TCustomGrid.Row

Row number for the selected grid cell.

Declaration

Source position: grids.pas line 1261

protected property TCustomGrid.Row : Integer
  read FRow
  write SetRow;

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 the new values in the Col and Row properties.

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