I have a datagridview table with combobox.
Now I want to check whether the combobox value is selected when a row is checked.
if (combobox.Selected.ToString() != null && selectedRowCount !=0)
{
MessageBox.Show("Combobox value is selected");
}
else
{
MessageBox.Show("Please select combox value!");
}
But this doesn't seem to work. Please advise.
Here is an example of checking the value in the column of the DataGridViewComboBoxColumn.
In the CellClick event we check the columns value instead of the combo's value.