Event when change a bool property

1 posts, 0 answers
  1. David
    David avatar
    11 posts
    Member since:
    Apr 2012

    Posted 06 Jun 2012 Link to this post

    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.
Back to Top