TcxCustomGridTableController.FindNextItem(Integer,Boolean,Boolean,Boolean,Boolean,TcxCustomGridRecord) Method
Returns the visible index of the focusable data item that follows or precedes the specified data item.
Declaration
function FindNextItem(AFocusedItemIndex: Integer; AGoForward: Boolean; AGoOnCycle: Boolean; AFollowVisualOrder: Boolean; out ACycleChanged: Boolean; ARecord: TcxCustomGridRecord): Integer; virtual;
Parameters
Name | Type | Description |
---|---|---|
AFocusedItemIndex | Integer | Specifies the visible index of the focusable data item used as the start position of the current search operation. The function searches the next or previous focusable data item depending on the |
AGoForward | Boolean | Specifies the search direction:
|
AGoOnCycle | Boolean |
|
AFollowVisualOrder | Boolean | Specifies if the function iterates through data items according to their positions in the grid View layout:
|
ACycleChanged | Boolean | Identifies if the function wrapped the current search operation when the
|
ARecord | TcxCustomGridRecord | Specifies the target record. Note You can pass |
Returns
Type | Description |
---|---|
Integer | The visible index of the found focusable data item. The function returns |
Remarks
You can set an individual data item’s Options.Focusing property to False
to prevent users from moving focus to the data item. Such items cannot accept focus, and all keyboard navigation operations skip these items.
Call the FindNextItem
function to identify the focusable data item nearest to the required position (visible data item index) passed as the AFocusedItemIndex
parameter.
Note
The FindNextItem
function only returns the visible index of the next or previous focusable data item. The current focus position remains unchanged.