property Items.ItemToVirtual (Index as Long) as Long
Gets the index of the virtual item giving the index of the item in the list.

TypeDescription
Index as Long A long expression that the index of the item in the list.
Long A long expression that indicates the index of virtual item.

The ItemToVirtual property converts the index of the item in the list 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 index of the item in the list giving the index of the virtual item/record.

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

Private Sub List1_AfterCellEdit(ByVal Index As Long, ByVal ColIndex As Long, ByVal NewCaption As String)
    With List1.Items
        adoVirtual.Change .ItemToVirtual(Index), ColIndex, NewCaption
    End With
End Sub