2012.2.1datagridview用法小结
dgv1.RowHeadersVisible = false;
//最左侧栏消失
dgv1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
//使数据区自动充满整个面板
dataGridView1.Columns[dataGridView1.Columns.Count - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
//最后一列自动充满面板
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
//自动调整所有列,但不会充满