Visual Basic
Example
Following code binds an UltraGrid to a data source in Form's Load event and calls DataBind on a button's handler to force the UltraGrid to reload the data source.
Imports
Infragistics.Win.UltraWinGrid
Private
Sub
Form1_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
MyBase
.Load
Me
.ultraGrid1.SetDataBinding(
Me
.DataSet11,
"Customers"
)
End Sub
Private
Sub
Button78_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
button78.Click
' When DataBind is called, the UltraGrid will reload the bands, columns and the rows
' from the data source. This can be used to force the grid to rebind to the data source.
Me
.UltraGrid1.DataBind()
End Sub
// When DataBind is called, the UltraGrid will reload the bands, columns and the rows
// from the data source. This can be used to force the grid to rebind to the data source.
this
.ultraGrid1.DataBind( );
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