I need to bind an enum to a combobox that is inside a DataGridTemplateColumn, but only some of the options that the enum has.
Example:
Enum options:
Unknow, One, Two, Three, Four, All
Bindable ones: One, Two, Three, Four
Any way to do this?
Many thanks.
Best regards
I have a value converter that I use for this. It’s geared toward binding to a property of the enum type which would be use for both the ItemsSource and SelectedItem:
It can also be used by directly referencing the enum:
Here’s the converter code: