D
Dom
Still making my way through cSharp. I've started using the ListView
control, and I'm already up against the wall. My code looks something
like this:
ListViewItem t = new ListViewItem();
for (...)
{
t.SubItems.Add (...);
}
ListView1.Add (t);
The problem is that the columns of the listview are shifted to the
right by one column. After debugging around, I found that "t = new
ListViewItem();" shows that t.SubItems.Count = 1. Where did that "1"
come from? Shouldn't it be "0"? It is still there after I do
t.Clear().
control, and I'm already up against the wall. My code looks something
like this:
ListViewItem t = new ListViewItem();
for (...)
{
t.SubItems.Add (...);
}
ListView1.Add (t);
The problem is that the columns of the listview are shifted to the
right by one column. After debugging around, I found that "t = new
ListViewItem();" shows that t.SubItems.Count = 1. Where did that "1"
come from? Shouldn't it be "0"? It is still there after I do
t.Clear().