Skip to main content

TcxCustomVerticalGrid.LastRow Method

Returns the last row within the grid.

Declaration

function LastRow: TcxCustomRow;

Returns

Type
TcxCustomRow

Remarks

Use LastRow to get the last row within the control’s row collection. The collection is exposed via the grid control’s Rows property.

Note

if the vertical grid control is empty, the method returns nil, so you should always consider checking the return value against nil before using the row returned.

Additionally, you can get the last visible row using the LastVisibleRow method.

See Also