Posted 7 January 2021, 9:02 pm ESTI have a DataTable filled from database.
DataTabel _dt = new DataTable();
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
Installed ComponentOne sample in the directory DataGridSamples uses model-side validation and I couldn't apply it as well.
Any help is appreciated.