This is a migrated thread and some comments may be shown as answers.

Event when change a bool property

0 Answers 66 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Jun 2012, 09:15 AM
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.

No answers yet. Maybe you can help?

Tags
PropertyGrid
Asked by
David
Top achievements
Rank 1
Share this question
or