Get DataGridView ComboBox Column value??
-
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
-
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
i have the same problem dgvPhysioSession.Rows[rowIndex].Cells["Diagnosis"].Value it returns null