Skip to main content

TcxCustomGridTableController.MakeFocusedItemVisible Method

Scrolls the View contents to make the focused item visible.

Declaration

procedure MakeFocusedItemVisible;

Remarks

You can use the MakeFocusedItemVisible method to make the focused item (the FocusedItem property) visible. The method scrolls the View until the item cell is entirely visible.

To make a specific item visible, see the MakeItemVisible method. There are also other methods to scroll the View contents:

  • 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.

See Also