If you need to apply the Best Fit feature for the currently focused View (in case of using Master-Detail relationships, your grid can include several views), you should use the KeyboardFocusView property of your GridControl, typecast it to the GridView object and call its BestFitColumns method (this method is part of
GridView only (and derived views of course)).
[C#] (MyGridControl. KeyboardFocusView as DevExpress.XtraGrid.Views.Grid.GridView).BestFitColumns();
[Visual Basic] CType((MyGridControl. KeyboardFocusView, DevExpress.XtraGrid.Views.Grid.GridView).BestFitColumns
To adjust the width of a single grid column, use the GridColumn.BestFit method. You can access an individual column via the Columns array property of your grid view.