|Index as Long||A long expression that indicates the index of the virtual item.|
|Long||A long expression that indicates the index of the item in the list.|
The VirtualToItem property converts the the index of the virtual item/record to the index of the item in the list. The VirtualToItem property scrolls the control's content to make sure that the virtual item is in the control's client area. The VirtualToItem property has effect only if the control is running in the virtual mode. Use the ItemToVirtual property to get the index of the virtual item based on the index of the item in the list.
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