好吧,我知道有点晚了,我希望我不会吵醒你。这可能会有所帮助。
For Each question As String In questions
answerStr = 'your query or something that can be used as a datasource, eg datatable'
Dim dgvcc As New DataGridViewComboBoxCell
With dgvcc
.DataSource = answerStr
.ValueMember = "ColumnIDFromAnswerStr"
.DisplayMember = "AnotherColumnFromAnswerStr"
End With
'this is where you can set the combobox
'assuming answerStr is a datatable (not tested code, but i think it will work)
dgvcc.Value = answerStr.Rows(x).Item(y).Value
'assuming you only have one column (combobox)
DataGridView1.Item(0, rowIndex) = dgvcc
rowIndex += 1
dgvcc.Dispose()
Next
编辑
我还发现了这个有用的链接