private void Purchase_Load(object sender, EventArgs e)
        {
            dataGridView1.Columns[0].Width = 80;//设置列宽度
            dataGridView1.Columns[1].Width = 150;//设置列宽度
            dataGridView1.Columns[2].Width = 60;//设置列宽度
            dataGridView1.Columns[3].Width = 60;//设置列宽度
            dataGridView1.Columns[4].Width = 100;//设置列宽度
            dataGridView1.Columns[5].Width = 100;//设置列宽度
            dataGridView1.RowHeadersVisible = false;   //隐藏首列
           
        }

dataGridView1设置列宽, dataGridView1隐藏首列

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-07-23
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-10-01
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案