I am creating a new UltraListViewItem with the codeDim item as New UltraListViewItem(sName, subItems)subItems is an array of 5 UltraListViewSubItems.This worked fine until I upgraded Infragistics to 10.2.20102.2081. Now, it creates an UltraListViewItem with 0 subitems.
Are you able to verify this behaviour?The most annoying thing is that the SubItems property is readonly, so I can't then just assign the subitems as a workaround. :-(
Thanks,Campbell
jcwild said:Are you able to verify this behaviour?
Sorry, yes, my fault. Looks like the GUI designer had somehow wiped my subitem definitions from the listview. Adding them back in solves my problem.
However, I'm still a little confused why the newly created UltraListViewItem reports 0 subitems after it has been instanciated with an array of 5 subitems.
The count of the SubItems collection depends on the number of members explicitly added to the control's SubItemColumns collection. You can create an UltraListViewItem with any number of subitems, and the values will be maintained until the item is added to the Items collection. An UltraListViewItem that has not yet been added to the collection will always return zero as the count of its SubItems collection.
Ah, ok. Thanks for clarifying.