DataGridView Last Row

I am adding rows to a DataGridView and there is always an empty row at the end of the data.  How can I stop the empty row from appearing?
Rowdyone52Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Bob LearnedConnect With a Mentor Commented:
this.dataGridView1.AllowUserToAddRows = false;

Bob
0
 
anyoneisCommented:
Bob has given you the answer. Note it is also possible to clear th e"Enable Adding" checkbox on the DataGridView Smart Tag in design view - it sets the exact same property.

David
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.