這是我在使用.net精簡框架(2.0)時,編程實現設置DataGrid中列寬度用到的一些方法

        }

 

可以在DataGrid中的Paint事件中添加這個方法隱藏行首:

 

 sender, PaintEventArgs e)
        {
            if (dataGrid1.DataSource != null)
            {
                dataGrid1.RowHeadersVisible 
= false;
            }
        }

 

 

相关文章:

  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2021-11-05
  • 2021-11-13
  • 2021-11-04
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案