Version

CurrentBand Property

Gets or sets the band whose columns are currently being displayed in the column chooser control. If null then displays columns from all bands.
Syntax
'Declaration
 
Public Property CurrentBand As UltraGridBand
public UltraGridBand CurrentBand {get; set;}
Example
The following code shows you how to create a ColumnChooserDialog in code and display it.

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
        Dim dlg As ColumnChooserDialog = New ColumnChooserDialog()

        ' Associate an ultra grid to the column chooser dialog.
        dlg.ColumnChooserControl.SourceGrid = Me.UltraGrid1

        ' Specify the band whose columns to display.
        dlg.ColumnChooserControl.CurrentBand = Me.UltraGrid1.DisplayLayout.Bands(0)

        ' Set the MultipleBandSupport to SingleBandOnly to hide the band selector combo box.
        dlg.ColumnChooserControl.MultipleBandSupport = MultipleBandSupport.SingleBandOnly

        ' Set the Owner of the dialog to the form that the UltraGrid is on.
        dlg.Owner = Me

        ' Finally show the dialog.
        dlg.Show()
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			ColumnChooserDialog dlg = new ColumnChooserDialog( );

			// Associate an ultra grid to the column chooser dialog.
			dlg.ColumnChooserControl.SourceGrid = this.ultraGrid1;

			// Specify the band whose columns to display.
			dlg.ColumnChooserControl.CurrentBand = this.ultraGrid1.DisplayLayout.Bands[0];

			// Set the MultipleBandSupport to SingleBandOnly to hide the band selector combo box.
			dlg.ColumnChooserControl.MultipleBandSupport = MultipleBandSupport.SingleBandOnly;

			// Set the Owner of the dialog to the form that the UltraGrid is on.
			dlg.Owner = this;

			// Finally show the dialog.
			dlg.Show( );
		}
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