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
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