Skip to main content

TcxCustomGridTableController.GoToPrev(Boolean,Boolean) Method

Moves focus to the record preceding the current one.

Declaration

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

Parameters

Name Type
AGoIntoDetail Boolean
ASyncSelection Boolean

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