I have a form that has a DataGridView as it’s main component. I need to resize the DGV when the user maximizes the form.
As I read online, this cannot be done programatically.
The program is written in C# and uses WinForms. How would you do it?
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.
Use Anshor property, and set to all four sides (top, right, botton and left).
This way the datagridview will resize together with form.