只需要设置属性即可,代码如下: //不显示出dataGridView1的最后一行空白 dataGridView1.AllowUserToAddRows = false; 搞定。
永久链接 : https://blog.darkmi.com/2013/04/30/293.html