datagridview控件–>属性–>更改AllowUserToAddRows为False即可
方法2:也可以用代码更改AllowUserToAddRows为False
this.dataGridView1.AllowUserToAddRows = false;
datagridview控件–>属性–>更改AllowUserToAddRows为False即可
方法2:也可以用代码更改AllowUserToAddRows为False
this.dataGridView1.AllowUserToAddRows = false;