i have a datagridview which has a DataGridViewComboBoxColumn for unit i want to get the selectedvalue of each DataGridViewComboBoxColumn how could i get this?
dataGridView1.Rows["RowNumber"].Cells["ColumnNameOrNumber"].Value will return value of DataGridViewComboBoxColumn but dataGridView1.Rows["RowNumber"].Cells["ColumnNameOrNumber"].FormattedValue will return Displaying text of DataGridViewComboBoxColumn ...
It is useful when our displaying text is different from value we are setting ... https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.formattedvalue(v=vs.110).aspx
Cheers!