How to get the Combobox selected item text which is inside a DataGridView? I have tried using the below code:
dataGridView1.Rows[1].Cells[1].Val
Also try this:
DataGridView.CurrentRow.Cells(Column.name).EditedFormattedValue.ToString()
EditedFormattedValue
object gives the current, formatted value of the cell in DataGridView
, regardless of the cell is edited or in edit mode. It's more convenient to capture the ComboBox
selection or any value of cell in DataGridView
.