ListView EditItem Bug?

  • Thread starter Thread starter KierenH
  • Start date Start date
K

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).
 
Back
Top