property Items.FocusItem as HITEM

Retrieves the handle of item that has the focus.

HITEM A long expression that indicates the item's handle that is focused.

If there is no focused item the FocusItem property retrieves 0. At one moment, only one item can be focused. When the selection is changed the focused item is changed too. Use the FocusColumnIndex property to change the focused column. The SelectColumnInner property indicates the index of an inner cell that has the focus. Use the Edit method to start editing the focused cell. Select a new item to focus a new item. Use the SelectItem property to select a new item. Use the Edit method to edit the focused cell, if the AutoEdit property is False. If the control supports single selection, the FocusItem property gets the selected item too. Use the SingleSel property to specify whether the control supports single or multiple selection. Use the ShowFocusRect property to indicate whether the control draws a marking rectangle around the focused item. You can change the focused item, by selecting a new item using the SelectItem method. If the items is not selectable, it is not focusable as well. Use the SelectableItem property to specify whether an item is selectable/focusable.

The control fires the FocusChanged event when the user changes: