blank line at end of data in datagrid

when I load a datagrid using vb.net in a form from data in a database, there is always an extra line at the bottom of the grid (to add more data I presume) .  How do you not display this extra line?
ddepuemdAsked:
Who is Participating?
 
Jorge PaulinoIT Pro/DeveloperCommented:
You can do:

Me.DataGridView1.AllowUserToAddRows = False
0
 
CodeCruiserCommented:
If you do not want the user to be able to modify cell values, set the ReadOnly property of the grid to be True.
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
My anwser was the correct for the asked question. The accepted answer was just a comment.
0
 
CodeCruiserCommented:
This is not fair. My answer was already selected. It was not a comment but rather a more complete solution. Why is it being messed up now?
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.