//Load 事件里面写如下语句private void Form1_Load(object sender, EventArgs e){this.dataGridView1.AllowUserToAddRows = false;}
//Load 事件里面写如下语句private void Form1_Load(object sender, EventArgs e){ this.dataGridView1.AllowUserToAddRows = false;}