gridView1.OptionsView.ColumnAutoWidth = false;
for (int i = 0; i < gridView1.Columns.Count; i++)
{
this.gridView1.BestFitColumns();
this.gridView1.Columns[i].BestFit();//自动列宽
}