Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: PropertyGrid validation issue [19930]

$
0
0
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: vlukanin **

Thank you for response, but OnCoerceValueChanged is protected method which is not visible outside the code. And I cannot inherit PropertyItem because of internal constructor to get an access to this method.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>