开发者

How to hide C# DataGridView default * row?

开发者 https://www.devze.com 2023-04-05 12:17 出处:网络
C# DataGridView controls have a default, empty last ro开发者_运维技巧w, marked with a *. How can I hide it?The row you speak of is the \'new row\' row. This can be hidden by setting the AllowUserToAdd

C# DataGridView controls have a default, empty last ro开发者_运维技巧w, marked with a *. How can I hide it?


The row you speak of is the 'new row' row. This can be hidden by setting the AllowUserToAddRows property to false.

Alternatively you can uncheck the 'Enable Adding' tick box in the DataGridView Tasks dialog.

How to hide C# DataGridView default * row?


Disable AllowUserToAddRows property. This property indicating whether the option to add rows(that you call default * row) is displayed to the user.


I aggree with Reniuz, if AllowUserToAddRows is enabled, a default row will automatically be generated and added to the row collection.

0

精彩评论

暂无评论...
验证码 换一张
取 消