C# DataGridView 多了一行空白

DataGridView 多了一行空白,DataGridView的AllowUserToAddRows属性默认为true,所以最后一行总会多出来一个让添加新内容的行,您可以把AllowUserToAddRows属性设置为False,这样就可以了
posted @ 2022-07-12 18:31  枫亦  阅读(20)  评论(0)    收藏  举报