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

TcxCustomGridTableController.GoToLast(Boolean,Boolean) Method

Moves focus to the last record (grouping row or data record) within the View.

#Declaration

Delphi
function GoToLast(AGoIntoDetail: Boolean; ASyncSelection: Boolean = True): Boolean;

#Parameters

Name Type
AGoIntoDetail Boolean
ASyncSelection Boolean

#Returns

Type
Boolean

#Remarks

If the last record designates a master row and it is expanded, you can set the AGoIntoDetail parameter to True to jump to the last record of its detail. Otherwise, GoToLast will focus only the last record within the current View.

The ASyncSelection parameter is optional. If this parameter is omitted, it is considered to be True. In this instance, this function clears the previous selection and synchronizes it with the last record. Set this parameter to False if you need to preserve selection when moving focus.

On a successful focus move, the GoToLast function returns True.

See Also