How can I make a datagridview proportionally larger when the form it is on is enlarged? I give examples:
without enlarging
The difference would be, without expanding the datagridview is smaller than expanded. When I maximize the program it doesn't expand and then the datagridview stays the same size and what I want is for it to get bigger, just like Form1.
Thank you very much and greetings!
Windows Forms doesn't have very good mechanisms to handle this type of problem.
What you can do is recalculate the size of the DataGridView in the events
Resize
andShown
of the Form.Something like that:
Click on the grid and you will see that a triangle appears, expand it and select the option to attach to its container, just like the image I show you.