PDA

Click to See Complete Forum and Search --> : Quick Listview Question


CYX1020
Nov 18th, 1999, 07:21 AM
One problem i have with the listview control is that when i have it in report view and add and item to it, it puts the item at the very top instead of the bottom. I was wondering if theres a way to make the listview put the item that is added down at the bottom of the listview. thanks for the help (by the way, i use VB5)

Serge
Nov 18th, 1999, 08:55 AM
ListItem object's Add method has first parameter - Index that specifies the index of the ListItem to add:


Dim xItem As ListItem

Set xItem = ListView1.ListItems.Add(ListView1.ListItems.Count + 1, , "MyItem")



------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)



[This message has been edited by Serge (edited 11-18-1999).]