ListView control won't display columns

Jimmy Turnip

Registered User.
Local time
Today, 03:06
Joined
Sep 26, 2000
Messages
18
Hello!

I'm using a TreeView and a ListView interactively in a form. When the user clicks on a node in the TreeView control, the ListView fills with items relating to that node, obtained from a table. This follows the model presented in http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/vbasic/vbcon98/vbconlistviewcontrolscenario2usingfunctiontocreatecolumnheaders.htm, at the microsoft developer's website.

Everything works fine, except that there are supposed to be 4 columns in my ListView (ListItem.Text, ListItem.SubItems(1), ListItem.SubItems(2), ListItems.SubItems(3))but only one (ListItem.Text) is displayed, and the column headings are not there.

Does anyone have a clue what I'm doing wrong? Does anyone have a clue what I'm barking on about?

As always, any help would be hugely appreciated. Thanks a lot!

JT
 

Users who are viewing this thread

Back
Top Bottom