I want to add DatatGridViewComboBoxCell into dynamically determined cells onto the datagridview.
So far all of the examples I have found either make the entire columns’ cells into comboboxes or don’t work.
Here is the simplest example that I can come up with. I have tried databinding to sources which work to a point. The items exist in the combobox.items but on the datagridview the combobox is empty and you cannot select a value

DataGridArticles.Columns.Add("columna", "columna")
Dim combo As New DataGridViewComboBoxCell
combo.Items.Add("b")
combo.Items.Add("ba")
combo.Items.Add("ca")
DataGridArticles.Rows.Add()
DataGridArticles.Rows(0).Cells(0) = combo
Is it possible to add a combobox to a specific cell in a datagridview.
I’ve never had any problems with DataBound
DataGridViewComboBoxCell.I’m using it like this:
It worked flawlessly every time I used it. So if it does not work for you may.
So to fix your problem add this line after adding items to combobox:
Hope it helps 🙂