0
votes

I have a datagrid in a wpf application where AutoGenerateColumns="TRUE". I would like to set some or all of them to be required and invalidate if something is missing.

I was hoping there would be something like: dgrid.Columns(_DataTable.Columns("fname").Ordinal).required = TRUE

2

2 Answers

0
votes

Is required used to specify that the value is required when editing a row? Validations are not done this way...

You can take a look here http://blogs.u2u.be/diederik/post/2009/09/30/Validation-in-a-WPF-DataGrid.aspx if this is what you need.