Posted 7 January 2021, 9:02 pm EST
I have a DataTable filled from database.
OleDbDataReader _r;
DataTabel _dt = new DataTable();
...
_dt.Load(_r);
I bind this DataTable to my DataGrid in code behind.
_grd.AutoGenerateColums = true;
_grd.ItemsSource = _dt.DefaultView;
The question is: how can I implement validation for data editing?
I’ve tried to apply this post https://www.grapecity.com/blogs/validation-using-idataerroinfo-in-wpf-c1datagrid, but in my version of DataGrid there is not property ```
e.Row.ValidationResults
Installed ComponentOne sample in the directory [b]DataGridSamples[/b] uses model-side validation and I couldn't apply it as well.
Any help is appreciated.