property Items.ItemPosition(Index as Long) as Long
Retrieves or sets a value that indicates the item's position.

 TypeDescription 
   Index as Long A long expression that indicates the index of the item.  
   Long A long expression that indicates the item's position.  

Use the ItemPosition property to change the item's position. The Sort method reorders the items, so each item position is changed. The item's position is zero based. Use the SortOrder property to sort a column. Use the FirstVisibleItem and NextVisibleItem properties to enumerate the items as they are listed. The LastVisibleItem property retrieves the index of last item that fits the client area. The ItemPosition property is not available if the control is running in the virtual mode. Use the BackColorAlternate property to specify an alternate background color for odd an even items. You can use the GetItems(1) method to get the list of indexes for the items as they are displayed, sorted and filtered.


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.