DataGrid columns are type locked. If you try and input a string into a column which is expecting an Int, you get the following error message.
Input string was not in a correct format.Couldn't store 'example string' in ItemNo Column. Expected type is Int32.
The goal behind this is to be able to upload data from a CSV in any format, and have the datagrid accept it. The itemsource is bound to a source DataTable to ensure that the right amount of columns are autogenerated, as well as to get the columnnames to populate the ComboBox header
Does anyone know a way to allow for flexible input inside of a dataGrid?
ObservableCollection<ExpandoObject>
? I think you were the guy. Make all the columns or properties strings, and you're good. In setting up CSV import, column value type validation could be a discreet step. – 15ee8f99-57ff-4f92-890c-b56153