バージョン

CurrentBand プロパティ

列チューザコントロールに現在その列が表示されているバンドを取得または設定します。nullの場合はすべてのバンドの列が表示されます。
シンタックス
'宣言
 
Public Property CurrentBand As UltraGridBand
public UltraGridBand CurrentBand {get; set;}
使用例
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( );
		}
参照