How to hide C # DataGridView default * row?

C # DataGridView controls have, by default, an empty last row marked with *. How can I hide this?

+8
c # datagridview
source share
3 answers

The line you are talking about is the line "new line". This can be hidden by setting the AllowUserToAddRows property to false.

Alternatively, you can clear the Enable Add checkbox in the DataGridView Tasks dialog box. See below:

+17
source share

Disable the AllowUserToAddRows property. This property indicates whether the user is shown the ability to add lines (which you call the default line *).

+4
source share

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

0
source share

All Articles