This question is locked. New answers and comments are not allowed.
Hello, i have a code behind grid property. One is a bool field. When i change the property (select/deselect) i need to launch a event for this property.
Now i have:
private void uxpGrid_Properties_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e){
...
case "ShowLabel":
e.PropertyDefinition.OrderIndex = 8;
e.PropertyDefinition.DisplayName = cCtlWindowPropertyElement.kshowLabel;
e.PropertyDefinition.PropertyChanged +=new System.ComponentModel.PropertyChangedEventHandler(PropertyDefinition_PropertyChanged);
break;
}
// Never call
private void PropertyDefinition_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
int a = 1;
}
Thanks in advance.
Now i have:
private void uxpGrid_Properties_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e){
...
case "ShowLabel":
e.PropertyDefinition.OrderIndex = 8;
e.PropertyDefinition.DisplayName = cCtlWindowPropertyElement.kshowLabel;
e.PropertyDefinition.PropertyChanged +=new System.ComponentModel.PropertyChangedEventHandler(PropertyDefinition_PropertyChanged);
break;
}
// Never call
private void PropertyDefinition_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
int a = 1;
}
Thanks in advance.