I am generating a listview dynamically from CSV files, and want to add images next to them...

I have added a ImageIndex and added images to it's array going up to 4

Now my code looks like this:

VB Code:
  1. ' build the navigation tree
  2.                 Dim sectionNode As TreeNode
  3.                 treeViewNavigation.BeginUpdate()
  4.                 Dim section As GenericTree.TreeElement
  5.                 For Each section In gt.Root.children
  6.                     sectionNode = New TreeNode(CType(section.reference, SectionElement).Name)
  7.                     treeViewNavigation.Nodes.Add(sectionNode)
  8.                     treeViewNavigation.ImageIndex = 1
  9.                     Dim subsection As GenericTree.TreeElement
  10.                     For Each subsection In section.children
  11.                         sectionNode.Nodes.Add(New TreeNode(CType(subsection.reference, SubsectionElement).Name))
  12.                         sectionNode.ImageIndex = 2
  13.                     Next subsection
  14.                 Next section
  15.                 treeViewNavigation.EndUpdate()
  16.                 treeViewNavigation.ExpandAll()

ANy ideas why it doesn't display the images? Is there an extra setting I am supposed to do?

Thanks.