Quote:
|
Dim combocell As DataGridViewComboBoxCell = dgvM.Rows(i).Cells(COL_FOLJER)
|
The error message says that Cells(COL_FOLJER) is a DataGridViewTextBoxCell, not a DataGridViewComboBoxCell.
You haven't changed cell type in your code anywhere, this is how:
Code:
Dim cell As New DataGridViewComboBoxCell
cell.Items.Add("A")
cell.Items.Add("B")
Me.DataGridView1.Item(col, row) = cell