RE: ListView EditItem Bug?
am 10.04.2008 08:34:00 von KierenHbump
"KierenH" wrote:
> 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).