Hi . I have set up some events for listview on windows form where some events (keydow, rightclick ..) will change listview's cell value, others will work if detecting this value change ( give notice to users, ....)
I used some events:
listview_ItemValuechanged
listview_Text
listview_ItemEdite
listview_ItemValuechanging
however they do not seem to be detected when a change in value occurs from another event
How can i implement this idea?
Thanks a lot
5 Answers, 1 is accepted
In this case you can use the CollectionChanged event which fires before the cell value changes:
radListView1.Items.CollectionChanged += Items_CollectionChanged;
private
void
Items_CollectionChanged(
object
sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
{
if
(e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.ItemChanged)
{
//TO DO
}
}
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Nadya
Progress Telerik
Thanks Nadya, I will try it as soon as possible :)
Feel welcome to reach back out whenever it is suitable for you. If you have any questions, I will be glad to help.
Regards,
Nadya
Progress Telerik
Hi Nadya, it worked for me
I was quite surprised because events can be controlled on items. haha
Thanks a lot.
Hello Khanh,
I am glad that this works for you. Please let me know if there is something else I can help you with.
Regards,
Nadya
Progress Telerik