I would like to delete the first row of the DataGridView before adding any rows through the program.
Instead of deleting through the program, I would rather remove the first row from the DataGridView properties.
Any Idea how to do it ?
Thanks
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.
You appear to be referring to the default new row on an editable
DataGridViewwhich allows users to add a new row to the grid using the UI.To stop this row from appearing you simply set the
DataGridView.AllowUserToAddRowsproperty to false, either programatically or in the designer.