Back to Devexpress

TcxCustomGridTableController.GoToPrev(Boolean,Boolean) Method

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

latest3.4 KB
Original Source

TcxCustomGridTableController.GoToPrev(Boolean,Boolean) Method

Moves focus to the record preceding the current one.

Declaration

delphi
function GoToPrev(AGoIntoDetail: Boolean; ASyncSelection: Boolean = True): Boolean;

Parameters

NameType
AGoIntoDetailBoolean
ASyncSelectionBoolean

Returns

Type
Boolean

Remarks

You can use the GoToPrev method to focus the record preceding the currently active one.

The AGoIntoDetail parameter is in effect when GoToPrev is applied to a master View. If the current record is a master row (a TcxGridMasterDataRow object) and the previous master row is expanded, then GoToPrev with the AGoIntoDetail parameter set to True makes a grid View move focus to the last detail record. If AGoIntoDetail is False , focus is moved to the master row preceding the current one.

The ASyncSelection parameter is optional. It allows you to specify whether the selection should be preserved when moving focus. If this parameter is omitted, it is considered to be True and this implies clearing the previous selection and synchronizing it with the focused record. Set this parameter to False if you need to preserve the selection when navigating.

If the method was a success, it returns True.

See Also

TcxGridMasterDataRow

TcxCustomDataController.GotoBookmark

TcxCustomDataController.SaveBookmark

TcxCustomGridTableController.FindNextRecord

TcxCustomGridTableController.FocusedRecord

TcxCustomGridTableController.FocusedRecordIndex

TcxCustomGridTableController.FocusNextRecord

TcxCustomGridTableController.FocusNextRecordWithSelection

TcxCustomGridTableController.GoToFirst

TcxCustomGridTableController.GoToLast

TcxCustomGridTableController.GoToNext

TcxCustomGridTableController.MakeRecordVisible

TcxCustomGridTableController Class

TcxCustomGridTableController Members

cxGridCustomTableView Unit