1. 程式人生 > >DevExpress XtraGrid GridColumn 列寬自適應

DevExpress XtraGrid GridColumn 列寬自適應

gridview.BestFitColumns();

this.gvScore.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;

this.gvScore.OptionsView.ColumnAutoWidth = false;

不能設定GridColumn的MaxWidth。