Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
XamComboEditor in XamGrid INotifyDataErrorInfo Validation
posted

Dear Support-Team,


i implemented an editable XamComboEditor via TemplateColumn with AllowEditableValidation set to true.

in the provided solution there is a viewModel hierarchy where everey row in the xamGrid has its own viewmodel instance, that implements INotifyDataErrorInfo.

In the AddingItem EventHandler i check the Validation and if it fails here, AddingItemEventArgs.Cancel is set to true and ErrorChanged event is raised (in the base class) for the property. Here the validated cell should stay in edit mode with the error being displayed, but it does not.

I just cannot get the Validation to work, the control completely ignores the Validation in the ViewModel.


Thanks in advance

Thomas

TemplateColumnComboEditor.zip