A
Alan T
I have a listview defined a coloumn at design time.
And the code I use to add a listviewitem:
ListViewItem lvi = new ListViewItem(user.Name);
lvi.Tag = (Object)user.Id;
lvUsers.Items.Add(lvi);
However, the listviewitem could not be added successfully.
If I removed the column settings, ie remove the columns at design time, then
the listviewitem can be added.
Why ?
And the code I use to add a listviewitem:
ListViewItem lvi = new ListViewItem(user.Name);
lvi.Tag = (Object)user.Id;
lvUsers.Items.Add(lvi);
However, the listviewitem could not be added successfully.
If I removed the column settings, ie remove the columns at design time, then
the listviewitem can be added.
Why ?