I am displaying tables of data in a Wizard window by adding DataRows to a DataTable (which already has DataColumns), then using the .DefaultView (DataView) given from this DataTable as the .ItemsSource for the DataGrid which is shown on the page.
My problem is, I only want specific rows to be read-only, based on a value provided in one of the row's columns. For example, if in a certain row there is a column with a Yes or No value, the row will be read-only based on this. As far as I can tell, there is no way to make this DataRow read-only when you add it to the DataTable.
Is there any way to loop through the DataTable, DataGrid or DataView and set specific rows to read-only based on a value in one of their columns?