gridView1.OptionsView.ColumnAutoWidth = false;
for (int i = 0; i < gridView1.Columns.Count; i++)
{
this.gridView1.BestFitColumns();
this.gridView1.Columns[i].BestFit();//自动列宽
}
标签:Count,BestFit,false,C#,Dev,gridView1,GridControl,Columns
来源: https://www.cnblogs.com/nanqinling/p/13765378.html