标签:
gridView1.OptionsView.ColumnAutoWidth =
false
;
for
(
int
I = 0; I < gridView1.Columns.Count; I++)
{
this
.gridView1.BestFitColumns();
this
.gridView1.Columns[I].BestFit();
//自动列宽
}
[转]DevExpress.XtraGrid.GridControl gridView自动列宽代码
标签:
原文地址:http://www.cnblogs.com/lzh_527/p/5782507.html