开发者

How to hide C# DataGridView default * row?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜