Hi ppl

I need to edit a listviewItem to change name so i use "beginedit()", but then i need to send the new name. The problem is, there is not way to see when edit is finished to send the new name.
So, any idea of how could i do to send the new edited name ?

Thanks

The Listview control has an event called "AfterLabelEdit" This event will fire after you change the text with beginedit. it will fire this event and you can validate/update the changes then

Yeah, thanks, i didn't reallize that there was such method.

There is also a beforeLabelEdit event. Can't think of anything I would use that for. Don't forget to mark the thread as solved.

How do i mark as solved?

at the end of the this thread page, underneath my post and above the text box where you type your reply is a an area with purple and gray text, asking if you want to mark the thread as solved. just click the link that's in the middle of if.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.