Profile Picture

iterate NTreeList

Posted By Vince McMullin 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hello Vince,

It is almost the same.

List<NTreeListNodeSubItem> items = new List<NTreeListNodeSubItem>();
int columnIndex = 1;
int nCount = nTreeList1.Nodes.Count;

for (int i = 0; i < nCount; i++)
{
    NTreeListNode currentNode = (NTreeListNode)nTreeList1.Nodes[i];
    items.Add(currentNode.SubItems[columnIndex]);
}



Best Regards,
Nevron Support Team



Vince McMullin
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 18, Visits: 2
Hello,

I wish to iterate through the NTreeList and collect a particular subitem for each row.

With a listview I did something like this:
'For Each lvItem As ListViewItem In ListView3.Items
' pmStationList.Add(lvItem.SubItems(1).Text)
'Next

I am not sure about the NTreeList

Any ideas?



Similar Topics


Reading This Topic