dgv.Rows.Add()
Dim rowIndex As Integer = 0
Dim colIndex As Integer = 0
For rowIndex = 0 To dgv.Rows.Count - 1
Dim comboBoxCell As New DataGridViewComboBoxCell
comboBoxCell.Items.Add("Clear Force")
comboBoxCell.Items.Add("this works")
comboBoxCell.Items.Add("well")
comboBoxCell.Value = "Clear Force"
dgv(1, rowIndex) = comboBoxCell
Next
dgv(1, 1).Value = "well"
fuente
No hay comentarios.:
Publicar un comentario