I have 4 Dev Express Grid Columns (Two are not visible) I'am trying to make the visible Columns like :
this.DataGridView1.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
I tried the following :
gridView2.Columns["MyColumnB"].BestFit();
It works fine but is there is anyway so It dosen't get Width more then GridControl and don't get that Horizental ScrollBar ?
Sorry , Fixed using :
gridView2.OptionsView.ColumnAutoWidth = true;