代码:
Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
或者设置DataGridView的AutoSizeColumnMode属性为AllCells
2023-09-30 14:58:34
代码:
Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
或者设置DataGridView的AutoSizeColumnMode属性为AllCells