gridView1.OptionsView.ColumnAutoWidth =
false
;
for
(
int
I = 0; I < gridView1.Columns.Count; I++)
{
this
.gridView1.BestFitColumns();
this
.gridView1.Columns[I].BestFit();
//自动列宽
}
转:http://www.cnblogs.com/zeroone/p/4870045.html
时间: 2024-10-29 19:10:52