When PropertyGrid.SelectedObject assigned to object having not valid values (with use IDataErrorInfo) then no red border appears, but tooltip with error message works. Property items gets highlighted when user clicks on the invalid field and then clicks another field.
I was not able to highlight such invalid fields programmatically, is there a workaround?
I'm using v.2.0
p.s. Also I was not able to control the same object other properties appearance. Calling OnPropertyChanged("PropName")
or prop.GetBindingExpression(PropertyItem.ValueProperty).UpdateSource();
did not lead to turn red border of PropertyItem on or off based on the validation result.
-Vitaly L
Comments: ** Comment from web user: emartin **
I was not able to highlight such invalid fields programmatically, is there a workaround?
I'm using v.2.0
p.s. Also I was not able to control the same object other properties appearance. Calling OnPropertyChanged("PropName")
or prop.GetBindingExpression(PropertyItem.ValueProperty).UpdateSource();
did not lead to turn red border of PropertyItem on or off based on the validation result.
-Vitaly L
Comments: ** Comment from web user: emartin **
I couldn't reproduce the issue with the attached "WpfApplication1.zip"
vlukanin, Could you provide use a sample reproducing the problem ?