Nighil Nighil - 3 years ago 212
C# Question

how to get selectedvalue from DataGridViewComboBoxColumn?

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

Answer Source

You can use this -

dataGridView1.Rows["YourRowNumber"].Cells["YourColumnNameOrNumber"].Value;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download