怎样把数组的值绑定到 dataGridView1?
新手啦,感谢赐教。用VB 2012和SqlServer 2012
For Me.ni=0 to ComboBox1.Items.Count-1
DataGridView1.Rows(ni).Cells(0).Value=pp(ni)
Next
或者用ComboBox1.Items(ni) 代替pp(ni)
错误信息:Index was out of range.Must be non-negative and less than the size of the collection.