Skip to main content

TcxCustomVerticalGrid.LastVisibleRow Method

Returns the last visible row.

Declaration

function LastVisibleRow: TcxCustomRow;

Returns

Type
TcxCustomRow

Remarks

Use LastVisibleRow to get the last visible row within the control. The method’s implementation ensures that the row returned has its Visible property set to True and the row is not hidden within a collapsed row (see IsRowVisible).

Note: that if the vertical grid control does not contain any visible rows 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 row within the control’s row collection via the LastRow method.

See Also