public static void OnValidationSummaryPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { RadGridView gridView = dependencyObject as RadGridView; bool isEnabled = (bool)e.NewValue; if (gridView != null && isEnabled) { ValidationBehavior behavior = new ValidationBehavior(gridView, isEnabled); } }