how to get selectedvalue from DataGridViewComboBoxColumn?

前端 未结 3 1389
情歌与酒
情歌与酒 2021-01-24 18:54

i have a datagridview which has a DataGridViewComboBoxColumn for unit i want to get the selectedvalue of each DataGridViewComboBoxColumn how could i get this?

3条回答
  •  庸人自扰
    2021-01-24 19:33

    You can use this -

    dataGridView1.Rows["YourRowNumber"].Cells["YourColumnNameOrNumber"].Value;
    

提交回复
热议问题