private void GridSizeAdjust()
{
dataGridView1.Columns[1].Width = 30;
dataGridView1.Columns[2].Width = 130;
dataGridView1.Columns[3].Visible = false;
dataGridView1.Columns[4].Width = 100;
dataGridView1.Columns[5].Width = 60;
dataGridView1.Columns[6].Width = 60;
dataGridView1.Columns[7].Width = 60;
dataGridView1.Columns[8].Width = 60;
dataGridView1.Columns[9].Width = 60;
dataGridView1.Columns[10].Width = 60;
dataGridView1.Columns[11].Width = 60;
dataGridView1.Columns[12].Width = 60;
dataGridView1.Columns[13].Width = 70;
dataGridView1.Columns[14].Width = 60;
}
{
dataGridView1.Columns[1].Width = 30;
dataGridView1.Columns[2].Width = 130;
dataGridView1.Columns[3].Visible = false;
dataGridView1.Columns[4].Width = 100;
dataGridView1.Columns[5].Width = 60;
dataGridView1.Columns[6].Width = 60;
dataGridView1.Columns[7].Width = 60;
dataGridView1.Columns[8].Width = 60;
dataGridView1.Columns[9].Width = 60;
dataGridView1.Columns[10].Width = 60;
dataGridView1.Columns[11].Width = 60;
dataGridView1.Columns[12].Width = 60;
dataGridView1.Columns[13].Width = 70;
dataGridView1.Columns[14].Width = 60;
}
No comments:
Post a Comment