property Items.ItemToVirtual (Item as HITEM) as Long
Gets the index of the virtual item giving the handle of the item.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
Long A long expression that indicates the index of the virtual item.

The ItemToVirtual property converts the handle of the item to the index of the virtual item/record. The ItemToVirtual property has effect only if the control is running in the virtual mode. Use the VirtualToItem property to get the handle of the item giving the index of the virtual item/record.

The following VB sample notifies the n object that the user changes the date in the control:

Private Sub Grid1_Change(ByVal Item As EXGRIDLibCtl.HITEM, ByVal ColIndex As Long, newValue As Variant)
    With Grid1.Items
        n.Change .ItemToVirtual(Item), ColIndex, newValue
    End With
End Sub