バージョン

SourceGrid プロパティ

この列チューザコントロールが現在その列を表示しているUltraGridBaseインスタンスを取得または設定します。
シンタックス
'宣言
 
Public Property SourceGrid As UltraGridBase
public UltraGridBase SourceGrid {get; set;}
解説

CurrentBand プロパティを使用して、コントロールに特定のバンドの列が表示されるように制限できます。

使用例
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( );
		}
参照