How to get dataGridView ComboBoxCell Value
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello All, I hope someone can help. I have a dataGridView populated with data, I have added a dataGridViewComboBoxColumn. The dataGridViewComboBoxColumn is populated per row. That all works great. The issue I am having is getting the value of a dataGridViewComboBoxColumn Cell. The last thing I tired is: DataGridViewComboBoxCell cell = dataGridView1[cntR, cntC] as DataGridViewComboBoxCell; string val = cell.ValueMember.ToString(); string val2 = cell.Value.ToString(); Which always returns "" for both. Any help would really be great. j