ListView EditItem Bug?

ListView EditItem Bug?

am 10.04.2008 12:45:00 von KierenH

If you set the EditIndex of a listview to 0, and then try and get the
EditItem, it is null.

EditIndex is documented as being zero-based.

Stepping into the code you can see:

public virtual ListViewItem get_EditItem()
{
if ((this._editIndex > 0) && (this._editIndex < this.Items.Count))
{
return this.Items[this._editIndex];
}
return null;
}

ListView.Items[ 0 ] returns the correct item.

Using NetFX 3.5.

Is this a bug? (if so, was unsure where to report it).

(posted again, as was unsure whether my alias was correctly linked to my
subscription)