Hi,
As per the subject, I want to pass a custom ValidationContext class into the DataAnnotation validation methods in order to supply ServiceProviders. Looking at GridViewDataControl,PerformDataAnnotationValidation,MoveNext it seems that it just creates a new vanilla ValidationContext with no provision for supplying your own. By contrast the DomainContext in RiaServices has a ValidationContext property which you can set to achieve this.
Is there a way to supply a ValidationContext for DataAnnotation Validation so that when a new row is added to the grid, the custom ValidationContext is passed to the validation methods?
--
Scott
As per the subject, I want to pass a custom ValidationContext class into the DataAnnotation validation methods in order to supply ServiceProviders. Looking at GridViewDataControl,PerformDataAnnotationValidation,MoveNext it seems that it just creates a new vanilla ValidationContext with no provision for supplying your own. By contrast the DomainContext in RiaServices has a ValidationContext property which you can set to achieve this.
Is there a way to supply a ValidationContext for DataAnnotation Validation so that when a new row is added to the grid, the custom ValidationContext is passed to the validation methods?
--
Scott