设置gridview 自动列宽 for (int i = 0; i < gridView1.Columns.Count; i++) { gridView1.Columns[i].BestFit(); } 跟 属性 columnautowidth 效果不一样