static void OnComplexFieldNameChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GridColumn column = (GridColumn)d; if (!string.IsNullOrEmpty((string)e.OldValue)) { column.ClearValue(ComplexPathProperty); } column.FieldName = (string)e.NewValue; if (!string.IsNullOrEmpty(column.FieldName)) { SetComplexPath(column, new ComplextPath(column.FieldName)); } }