Back to Devexpress

TcxCustomGridTableController.GoToLast(Boolean,Boolean) Method

vcl-cxgridcustomtableview-dot-tcxcustomgridtablecontroller-dot-gotolast-x28-system-dot-boolean-system-dot-boolean-x29.md

latest3.0 KB
Original Source

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

NameType
AGoIntoDetailBoolean
ASyncSelectionBoolean

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

TcxGridMasterDataRow

TcxCustomDataController.GotoBookmark

TcxCustomDataController.SaveBookmark

TcxCustomGridTableController.FindNextRecord

TcxCustomGridTableController.FocusedRecord

TcxCustomGridTableController.FocusedRecordIndex

TcxCustomGridTableController.FocusNextRecord

TcxCustomGridTableController.FocusNextRecordWithSelection

TcxCustomGridTableController.GoToNext

TcxCustomGridTableController.GoToPrev

TcxCustomGridTableController.MakeRecordVisible

TcxCustomGridTableController Class

TcxCustomGridTableController Members

cxGridCustomTableView Unit