标签:
1 /// <summary> 2 /// 自适应列宽,显示横向滚轴,只有当所有列都已经在界面上加载完成之后才能生效 3 /// </summary> 4 public void setAutoCloumnWidth() 5 { 6 //自适应列宽 7 this.gridView.BestFitColumns(); 8 this.gridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always; 9 this.gridView.OptionsView.ColumnAutoWidth = false; 10 }
标签:
原文地址:http://www.cnblogs.com/lyd2016/p/5593227.html