Validating datagrid values

The Data Grid object does work as expected, but that is the same as entering fixed values in the Data Validator directly. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.EG: The Most Important thing is to disable the Save button when the form is invalid.For this we had a static property in our view model named Errors.

However the data grid complicates things, and I find myself going back and forth between doing data validation in the View Model or in the View itself.

It does fine at checking for nulls, data types, max, min, and values that match an explicitly entered list.

What doesn't work is the "Read Allowed Values from another step".

I've got quite a few that must be 0,1, or 9 (no, yes and unknown), three that can be 0,1,2..10 or 99.

It's those where I'd like to use the external table.

Leave a Reply