Bind GridViewComboBoxColumn to Enum Type Property
Environment
Product Version | Product | Author |
---|---|---|
2021.3.914 | RadGridView for WinForms | Dinko Krastev |
Description
A common requirement is to show enum values in GridViewComboBoxColumn. To do that we can create a custom wrapper class that will return a collection holding all values of an Enum. Then we can create a custom Enum type object.
Generic Enum Wrapper Class
What's left is to create some dummy data and set our GridViewComboBoxColumn to show enum values of custom Enum type.