TcxCustomGridTableController.MakeRecordVisible(TcxCustomGridRecord) Method
Makes a specific record visible.
Declaration
procedure MakeRecordVisible(ARecord: TcxCustomGridRecord); virtual;
Parameters
Name | Type |
---|---|
ARecord | TcxCustomGridRecord |
Remarks
This method scrolls the View to make a record identified by the ARecord parameter visible.
Records displayed within the View can be accessed via the View’s ViewData.Records property. Note that the View does not provide record objects for rows hidden within collapsed groups.
In grid mode, only a fixed amount of records is loaded into a memory buffer at a time. Therefore, a View provides access only to these records via the ViewData.Records property.
Other methods to scroll the View contents are:
The Scroll method allows you to simulate user actions with scrollbars
The TopRecordIndex property specifies the index of the topmost visible record and this enables scrolling
The LeftPos property (available in (Banded) Table Views) allows you scroll horizontally by a specific amount of pixels
These methods do not move focus when scrolling. To move focus to a specific item and record, see the FocusNextItem, FocusNextRecord methods and TcxCustomGridTableItem.Focused , TcxCustomGridRecord.Focused properties, for instance.