from http://heisetoufa.javaeye.com/blog/247120 //不显示出dataGridView1的最后一行空白 dataGridView1.AllowUserToAddRows = false;