Adding Columns to a ListView
Hi everyone, For example, this is the code I have so far for just displaying the first name.
I'm trying to populate a ListView control using code in C#. While I am able to display one column of information, how can I add an extra column?
for (int i = 0; i < 100; i++) {
ListViewItem foo = new ListViewItem();
foo.Content = "First Name: " + i;
// ucMain = ListView created in EID (Sparkle)
ucMain.Items.Add(foo);
}
In several of the online examples, especially those created in VB, the listviewitem seems to have a subitem method, but I can't find the WPF equivalent to use in C#.
Thanks,
Kirupa

