Basically, I want to set a "SelectedIndex" value of the comboboxcell.
From the code shown, objTypes object will contain something like:-
I want to default some of the rows to specific values. If I set the ".Value" property of the cell to 20, I want this to display "Second" within the combobox cell but I get the error attached as screen shot:-
Any help would be appreciated
Dim dgCombo As DataGridViewComboBoxCell = grdHeader.Rows(i).Cells("colType")
dgCombo.DataSource = objTypes
dgCombo.DisplayMember = "Desc"
dgCombo.ValueMember = "Value"