Vcl.Grids.TCustomGrid.Row

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Row: Longint read FCurrent.Y write SetRow;

C++

__property System::LongInt Row = {read=FCurrent.Y, write=SetRow, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Specifies the index of the row that contains the selected cell.

Use Row at runtime to determine the current row in the grid. Setting Row moves focus to the cell in the current column that is in the new row. The first row has an index of 0, the second row an index of 1, and so on.

The selected cell in the grid can be located by reading the Row property and the Col property to obtain the indexes of its row and column. When focus moves to the grid, the selected cell gets input focus.

See Also

Code Examples