摘要: 在winform中,有时候a56爆大奖在线娱乐们希望动态给dataGridView添加行winform添加行是很简单的,看下面代码 int index=this.dataGridView1.Rows.Add(); //添加行的索引 this.dataGridView1.Rows[index].Cells[0].Value = "1"; //第0列的值 this.dataGridView1.Rows[index].Cells[1].Value = "2"; //第一列的值通过上面就可以动态给dataGridView添加行了; 阅读全文
posted @ 2013-08-27 09:19 最後的輕語 阅读(1547) 评论(0) 推荐(0) 编辑