For Each row In Me.DataGridView1.Rows row.Height = 40 row.DefaultCellStyle.WrapMode = DataGridViewTriState.True Dim dgvcombo As DataGridViewComboBoxCell dgvcombo = row.Cells(2) row.Cells(0).Value = tasknum row.Cells(1).Value = GetScalarData("SELECT duedate FROM task WHERE capaID = '" & CAPAid & "' AND task = '" & tasknum & "'") For i = 0 To x.Count - 1 dgvcombo.Items.Add(x(i)) Next tasknum = tasknum + 1 Next row
DataGridViewComboBoxColumn
dgvcombo.Value = dgvcombo.Items(0)
DataGridViewComboBoxCell
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)