[Mono-winforms-list] ListView LabelEdit

Gert Driesen gert.driesen at telenet.be
Mon Feb 26 15:11:24 EST 2007



> -----Original Message-----
> From: mono-winforms-list-bounces at lists.ximian.com [mailto:mono-
> winforms-list-bounces at lists.ximian.com] On Behalf Of Aline & Aldric
> Sent: dinsdag 20 februari 2007 19:38
> To: mono-winforms-list at lists.ximian.com
> Subject: [Mono-winforms-list] ListView LabelEdit
> 
> Hi,
> 
> I think there's a problem somewhere :
> I have a listview and i code the event "AfterlabelEdit".
> But the labelediteventargs (e) doesn't seem to return good values : the
> "item" property always return -1.
> 
> Her is  a sample of my code :
>  private void LV_AfterLabelEdit(object sender, LabelEditEventArgs e)
>         {
>             MessageBox.Show(e.Item.ToString() + "   " +
> LV.Items.Count.ToString() );
>         }
> 
> The messagebox always display "-1    x"
> 
> Is it a bug or an error in my code ?

Can you try again with Mono SVN ?

Gert



More information about the Mono-winforms-list mailing list