Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomVerticalGrid.LastRow Method

Returns the last row within the grid.

#Declaration

Delphi
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