c# - How can I modify the format of a DataGridViewComboBoxColumn? -


I have a similar problem as described by the poster, where they want the combobox to display the description of enums and There are no toasting Enum

I really like but I noticed that DataGridViewComboBoxColumn does not have a format or formatting enabled not a feature.

Can anyone offer me an alternative solution for this?

When I need to assign a list of value values ​​for the combo box, usually List & lt; Tuple & lt; Enum, string & gt; & Gt; Specify the DataSaster as DisplayMember ValueMember (winforms), DisplayMemberPath selected Valuepath (wpf) Item2 and Item1 Then, as the value, I use SelectedValue instead of the selected event.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -