Validation errors - making visible

Nov 21, 2008 at 10:55 AM
Hi,

I needed to know whether a cell or row was valid before allowing the user to save the work. I couldn't find any property on the DataGrid which told me this but I did find two private methods called HasRowValidationError  / HasCellValidationError  so I changed these to be protected so I could access them from my inherited control.

I realize this will have upgrade issues any advice on alternatives?

Thanks
Coordinator
Dec 5, 2008 at 12:57 PM
For cell validation you can set the ValidationStep to RawProposedValue or ConvertedValue which will allow you to validate before data is fully committed.  For row validation, unfortunately it will have to save to the data source for validation to take place.