Hi. I'm working with RadPropertyGrid for WinForms.
I have some problem with PropertyValueChanged Event
So, how can you see, In my project I need show MessageBox with some Exception. When I changed bool value (itemC) in propertyGrid, MessegeBox is shown once and it's ok, but when I changed string or int value PropertyValueChanged event began twice (second event began in line "MessageBox.Show(exc.Message); ")
Maybe you can explain me what I do wrong. Thanks
I have some problem with PropertyValueChanged Event
public partial class Form1 : Form { public Form1() { InitializeComponent(); radPropertyGrid1.PropertyValueChanged += new PropertyGridItemValueChangedEventHandler(radPropertyGrid1_PropertyValueChanged); string A = ""; int B = 0; bool C = false; RadPropertyStore store = new RadPropertyStore(); PropertyStoreItem itemA = new PropertyStoreItem(typeof(string), "A", A); PropertyStoreItem itemB = new PropertyStoreItem(typeof(int), "B", B); PropertyStoreItem itemC = new PropertyStoreItem(typeof(bool), "C", C); store.Add(itemA); store.Add(itemB); store.Add(itemC); radPropertyGrid1.SelectedObject = store; } void radPropertyGrid1_PropertyValueChanged(object sender, PropertyGridItemValueChangedEventArgs e) { try { throw new NotImplementedException(); } catch(Exception exc) { MessageBox.Show(exc.Message); } } }Maybe you can explain me what I do wrong. Thanks