DataGridViewRow r1 = new DataGridViewRow();
r1.CreateCells(this.dataGridView1);
r1.Cells[0].Value = false;
r1.Cells[1].Value = type;
r1.Cells[2].Value = username;
r1.Cells[3].Value = idnumber;
r1.Cells[4].Value = gender;
r1.Cells[5].Value = phone;
r1.Cells[6].Value = area;
this.dataGridView1.Rows.Add(r1);
C#Winform技术,利用DataGridViewRow向DataGridView中添加数据
最新推荐文章于 2024-10-15 14:42:18 发布