Version

BandHeader Class

The class represents the header for a specific band
Syntax
'Declaration
 
Public NotInheritable Class BandHeader 
   Inherits HeaderBase
   Implements Infragistics.Shared.ISelectableItem, Infragistics.Win.IValueListOwner, Infragistics.Win.Layout.IGridBagConstraint, Infragistics.Win.Layout.ILayoutChildItem, Infragistics.Win.Layout.ILayoutItem, IProvideRowLayoutColumnInfo 
public sealed class BandHeader : HeaderBase, Infragistics.Shared.ISelectableItem, Infragistics.Win.IValueListOwner, Infragistics.Win.Layout.IGridBagConstraint, Infragistics.Win.Layout.ILayoutChildItem, Infragistics.Win.Layout.ILayoutItem, IProvideRowLayoutColumnInfo  
Example
Following code shows various properties available to control visibility of band, group and column headers.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
      ' Get the band to hide the headers in.
      Dim band As UltraGridBand = Me.ultraGrid1.DisplayLayout.Bands(0)

      ' You can hide the column headers by setting ColHeadersVisible to false. By
      ' default, column headers are visible.
      band.ColHeadersVisible = False

      ' You can hide the group headers by setting GroupHeadersVisible to false. By
      ' default, group headers are visible.
      band.GroupHeadersVisible = False

      ' You can also show the band header which by default is hidden by setting 
      ' the HeaderVisible property to true.
      band.HeaderVisible = True

      ' You can also set the caption of the band header.
      band.Header.Caption = "Customers Table"

      ' You can also set the apperance of the band header using Appearance property 
      ' off the header.
      band.Header.Appearance.BackColor = Color.DarkBlue
      band.Header.Appearance.ForeColor = Color.LightYellow

      ' You can use the HeaderPlacement property to specify how headers are displayed.
      band.Override.HeaderPlacement = HeaderPlacement.FixedOnTop

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button1_Click(object sender, System.EventArgs e)
{
	// Get the band to hide the headers in.
	UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];

	// You can hide the column headers by setting ColHeadersVisible to false. By
	// default, column headers are visible.
	band.ColHeadersVisible = false;

	// You can hide the group headers by setting GroupHeadersVisible to false. By
	// default, group headers are visible.
	band.GroupHeadersVisible = false;

	// You can also show the band header which by default is hidden by setting 
	// the HeaderVisible property to true.
	band.HeaderVisible = true;

	// You can also set the caption of the band header.
	band.Header.Caption = "Customers Table";

	// You can also set the apperance of the band header using Appearance property 
	// off the header.
	band.Header.Appearance.BackColor = Color.DarkBlue;
	band.Header.Appearance.ForeColor = Color.LightYellow;

	// You can use the HeaderPlacement property to specify how headers are displayed.
	band.Override.HeaderPlacement = HeaderPlacement.FixedOnTop;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also