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

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

posted @ 2020-10-03 20:27  南秦岭  阅读(1881)  评论(0编辑  收藏  举报