You should set the GridControl.DataSource property to null (Nothing in VB.NET) and call the Columns.Clear() method against the grid's main view.
[C#] Open in popup windowgridControl1.DataSource = null; gridView1.Columns.Clear();
If you need to restore the original grid view later, you can dynamically create a temporary empty GridView and assign it to the GridControl.
[C#] Open in popup windowusing DevExpress.XtraGrid.Views.Grid; object ds; // clear ds = gridControl1.DataSource; gridControl1.DataSource = null; GridView view = new GridView(gridControl1); view.OptionsView.ShowGroupPanel = false; view.OptionsView.ShowColumnHeaders = false; gridControl1.MainView = view; // restore gridControl1.MainView = gridView1; gridControl1.DataSource = ds;