[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 1283

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 (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.

See also

TCustomGrid.Col

  

Column index for the selected grid cell.

TCustomGrid.CheckLimitsWithError

  

Checks column and row limits for the specified cell, with error trapping.

TCustomGrid.MoveExtend

  

Moves the selected cell or extends a selection using the specified column and row values.

TCustomGrid.Click

  

Performs actions needed when a mouse click occurs in the grid control.

#lcl.controls.TControl.Click

  

Signals OnClick and/or executes the ActionLink when the control has been clicked.

#lcl.controls.TControl.OnClick

  

Notification handler for mouse clicks.


Version 4.0 Generated 2025-05-03 Home