I have a Preferences data structure, where I have a Value field and an enumeration for the Type field.
The type can be 0-Boolean, 1-Integer, 2-String ...
Depending on the value in this Type field, I would like to display the Value cell in different ways, a check box, a text box, a drop-down list, etc. So, to make this clear, different cells should be displayed in the same column depending on the data in this row.
I suppose I need to use a DataGridTemplateColumn, but I have never done this and would like, if possible, an example.
Also, what can I do with XAML and what needs to be done in Code? I think the value converter should also be used?
katit
source share