1.可以通过dataGridView的Anchor属性调整;
2.通过代码方式调整:
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
或者
this.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)));
参考: http://topic.csdn.net/u/20101126/13/80c944dc-521a-4e2d-bd24-8d85411cd502.html