DataGridView动态添加新行的两种方法

简单介绍如何为DataGridView控件动态添加新行的两种方 法:this 方法一: spa int index=this.dataGridView1.Rows.Add(); this.dataGridView1.Rows[index].Cells[0].Value = "1";  this.dataGridView1.Rows[index].Cells[1].Value = "2";  thi
相关文章
相关标签/搜索