private void advBandedGridViewSchedule_CustomDrawFooter(object sender, DevExpress.XtraGrid.Views.Base.RowObjectCustomDrawEventArgs e)
 {
     if (_spotColumns.Count > 0)
     {
         e.Painter.DrawObject(e.Info);
         DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView view = sender as DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView;
         DevExpress.XtraGrid.Views.BandedGrid.ViewInfo.AdvBandedGridViewInfo viewInfo = view.GetViewInfo() as DevExpress.XtraGrid.Views.BandedGrid.ViewInfo.AdvBandedGridViewInfo;
         BandedGridColumn column = bandedGridColumnName;
         if (_localSchedule.ShowCPP)
         {
             column = bandedGridColumnCPP;
         }
         else if (_localSchedule.ShowGRP)
         {
             column = bandedGridColumnGRP;
         }
         else if (_localSchedule.ShowRate)
         {
             column = bandedGridColumnRate;
         }
         else if (_localSchedule.ShowRating)
         {
             column = bandedGridColumnRating;
         }
         else if (_localSchedule.ShowLenght)
         {
             column = bandedGridColumnLength;
         }
         else if (_localSchedule.ShowDay)
         {
             column = bandedGridColumnDay;
         }
         else if (_localSchedule.ShowTime)
         {
             column = bandedGridColumnTime;
         }
         int       x              = viewInfo.ColumnsInfo[column].Bounds.X;
         int       width          = viewInfo.ColumnsInfo[column].Bounds.Width;
         string    spotTotalTitle = "Totals: ";
         SizeF     size           = e.Appearance.CalcTextSize(e.Cache, spotTotalTitle, 50);
         int       textWidth      = Convert.ToInt32(size.Width) + 1;
         Rectangle textRect       = new Rectangle(x + width - 50, e.Bounds.Y, textWidth, e.Bounds.Height);
         e.Appearance.DrawString(e.Cache, spotTotalTitle, textRect);
         e.Handled = true;
     }
 }
		private void InitializeComponent()
		{
			this.gridBand1 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
			this.gridControl1 = new DevExpress.XtraGrid.GridControl();
			this.advBandedGridView1 = new DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView();
			((System.ComponentModel.ISupportInitialize)this.gridControl1).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.advBandedGridView1).BeginInit();
			this.SuspendLayout();
			//
			//gridBand1
			//
			this.gridBand1.Caption = "gridBand1";
			this.gridBand1.Name = "gridBand1";
			//
			//gridControl1
			//
			this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gridControl1.Location = new System.Drawing.Point(0, 0);
			this.gridControl1.MainView = this.advBandedGridView1;
			this.gridControl1.Name = "gridControl1";
			this.gridControl1.Size = new System.Drawing.Size(821, 513);
			this.gridControl1.TabIndex = 7;
			this.gridControl1.UseEmbeddedNavigator = true;
			this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {this.advBandedGridView1});
			//
			//advBandedGridView1
			//
			this.advBandedGridView1.Bands.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.GridBand[] {this.gridBand1});
			this.advBandedGridView1.GridControl = this.gridControl1;
			this.advBandedGridView1.Name = "advBandedGridView1";
			//
			//Form1
			//
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(821, 513);
			this.Controls.Add(this.gridControl1);
			this.Name = "Form1";
			this.Text = "How to hide the grid columns displayed in the bands when grouping is applied";
			((System.ComponentModel.ISupportInitialize)this.gridControl1).EndInit();
			((System.ComponentModel.ISupportInitialize)this.advBandedGridView1).EndInit();
			this.ResumeLayout(false);
			advBandedGridView1.EndGrouping += new System.EventHandler(advBandedGridView1_EndGrouping);
			base.Load += new System.EventHandler(Form1_Load);

		}
 public MyAdvBandedGridViewInfo(DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView gridView)
     : base(gridView)
 {
 }