這是我在使用.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