This is a migrated thread and some comments may be shown as answers.

Validation of cell using DataAnnotation

2 Answers 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joel Palmer
Top achievements
Rank 2
Joel Palmer asked on 02 Aug 2013, 06:28 PM
I am successfully binding to a data grid using a dynamic object.  I've also been able to attach and use DataAnnotations on those dynamic properties to validate the values entered into each cell.  Because it is dynamic, I count on automatic column generation and can't set the column properties in the XAML.

However, I would like validation to happen when each cell is updated and not wait for the row to be validated.  To do this, do I capture the column and set binding properties on the AutoGeneratingColumn event?  Or do I interecept the validation on the CellValidating event?

As always, thanks for your help and code examples would be appreciated,
Joel

2 Answers, 1 is accepted

Sort by
0
Joel Palmer
Top achievements
Rank 2
answered on 02 Aug 2013, 06:29 PM
Copy/Paste provided for some weird formatting.  Sorry.
0
Vera
Telerik team
answered on 05 Aug 2013, 03:28 PM
Hi Joel,

Will it be possible to open a support ticket and to send a sample demonstrating your scenario? We will investigate it in order to provide you with the most appropriate solution.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Joel Palmer
Top achievements
Rank 2
Answers by
Joel Palmer
Top achievements
Rank 2
Vera
Telerik team
Share this question
or