C# Dev GridControl 实现列宽度自适应

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

上一篇:xmal随笔


下一篇:dev中GridControl表格的列名配置