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

Event when change a bool property

0 Answers 90 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
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.
Tags
PropertyGrid
Asked by
David
Top achievements
Rank 1
Share this question
or