Home > Net >  How to let the datagridview to adapt to the width of the window
How to let the datagridview to adapt to the width of the window

Time:11-23

For help, winform how to set up in the middle of the datagridview to make it like kingdee wisdom remember adaptive child window width (note that the datagridview adaptive child window width instead of the column to adapt to the datagridview wide), longitudinal tensile wide mouth at the same time, can increase the line out, what should I do?

CodePudding user response:

 enclosing dataGridView1. Anchor=((System. Windows. Forms. AnchorStyles) ((((. System. Windows Forms. AnchorStyles. Top | System. Windows, Forms, AnchorStyles. Bottom) 
| System. Windows. Forms. AnchorStyles. Left)
. | System. Windows Forms. AnchorStyles. Right)));

CodePudding user response:

Datagridview - layout - Archor set
  •  Tags:  
  • C#
  • Related