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.
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.
精彩评论