How to get the TEXT of Datagridview Combobox selected item?

前端 未结 5 806
渐次进展
渐次进展 2021-02-04 14:04

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         


        
5条回答
  •  情深已故
    2021-02-04 15:10

    You could Try this :-

    dataGridView1.CurrentRow.Cells[0].Value.ToString();
    

    Index the column of the cell you need to look at, whichever is the index of your ComboBoxColumn.

提交回复
热议问题