バージョン

SetDataBinding(Object,String) メソッド

コントロールのデータソースとデータメンバーを 1 つのアトミック操作で設定します。
シンタックス
'宣言
 
Public Overloads Sub SetDataBinding( _
   ByVal dataSource As Object, _
   ByVal dataMember As String _
) 
public void SetDataBinding( 
   object dataSource,
   string dataMember
)

パラメータ

dataSource
バインド先のデータソース。
dataMember
データメンバー。
解説

詳細は、DataSource プロパティを参照してください。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

      Me.OleDbDataAdapter1.Fill(Me.DataSet11)
      Me.OleDbDataAdapter2.Fill(Me.DataSet11)
      Me.OleDbDataAdapter3.Fill(Me.DataSet11)

      Me.ultraGrid1.SetDataBinding(Me.DataSet11, "")
      
      ' You can set the ScrollTipField to the key of the column key you want the
      ' UltraGrid to display cell values of in the tool-tips that show up when the user
      ' drags the vertical scrollbar thumb.
      Me.UltraGrid1.DisplayLayout.Bands(0).ScrollTipField = "CustomerID"

      ' Ensure that ScrollStyle is Deferred which it is by default otherwise the 
      ' UltraGrid will not display tool-tips mentioned above when the user drags the 
      ' vertical scrollbar thumb.
      Me.UltraGrid1.DisplayLayout.ScrollStyle = ScrollStyle.Deferred

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

private void Form1_Load(object sender, System.EventArgs e)
{

	this.oleDbDataAdapter1.Fill( this.dataSet11 );
	this.oleDbDataAdapter2.Fill( this.dataSet11 );
	this.oleDbDataAdapter3.Fill( this.dataSet11 );

	this.ultraGrid1.SetDataBinding( this.dataSet11, "" );

	// You can set the ScrollTipField to the key of the column key you want the
	// UltraGrid to display cell values of in the tool-tips that show up when the user
	// drags the vertical scrollbar thumb.
	this.ultraGrid1.DisplayLayout.Bands[0].ScrollTipField = "CustomerID";

	// Ensure that ScrollStyle is Deferred which it is by default otherwise the 
	// UltraGrid will not display tool-tips mentioned above when the user drags the 
	// vertical scrollbar thumb.
	this.ultraGrid1.DisplayLayout.ScrollStyle = ScrollStyle.Deferred;

}
参照