问题描述
inti=0;privatevoiddataGridView2_RowsAdded(objectsender,DataGridViewRowsAddedEventArgse){inta=dataGridView2.Rows.Count;//inti=0;intd=dataGridView2.Rows[e.RowIndex].Cells.Count;foreach(DataGridViewCelldgvcindataGridView2.Rows[e.RowIndex].Cells){dgvc.Value=a[0,i++];}}想把a数组中的一行数据加入新加的哪个row中。可是遍历只走了一遍,明明有三个column
解决方案
解决方案二:
该回复于2009-03-11 12:25:01被版主删除
时间: 2024-10-22 06:16:38