My DataGridView is read-only – the user cannot enter data into it, so that empty row at the end (the “new” row?) just looks ugly.
How can I prevent it from displaying?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On the form designer view, click the little arrow to the right on the DataGridView. Adjust the value for
Enable Adding. That will remove the row at the bottom of your grid.Programmatically, you can adjust the
AllowUserToAddRowsproperty.