-
Hi I’ve been asking this everywhere was wondering if GitHub Community had the answer I’ve been trying to get a selected item from a combobox in a datagrid cell. I have an automatically generated datagrid depending on a list of items. This is my code:
It works great for esp since I can then convert that to a value or a String. But for the combobox column which is the DataGridE.Columns[2] I have no idea how to get the selected item or index, preferably item. I have tried doing something similar with getcellcontent but it just doesn’t work. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think this has your answer. To summarize: GetCellContent returns the contained control. In the case of DataGridComboBoxColumn, the contained control is derived from ComboBox. I.e:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
I think this has your answer.
To summarize:
GetCellContent returns the contained control. In the case of DataGridComboBoxColumn, the contained control is derived from ComboBox. I.e: