ListView EditItem Bug?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top