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
610
Row level (entity-level) validation
posted

Hi,

I have put an entity level data annotation for validation 

 

[

 

CustomValidation(typeof(TestValidators), "PreventExpensiveUnits")]

 

 

 

public partial class TestMessage

 

 

and cannot make it to show validation error in ValidationSummary or in xamGrid itself. When I do this for property level validation, everything works fine - cell is getting red rectangle and error and ValidationSummary shows the error for this cell.

Does anydoby have any idea how to make entity level validation working?

Thanks.