Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub FrmFilterRow_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
' NewColumnLoadStyle and NewBandLoadStyle let you hide any new columns in the
' datasource that does not exist in the current layout. For example at design
' time if you added A and B columns and in the data source there are A, B and
' C columns then setting the NewColumnLoadStyle to Hide will cause the C to
' be hidden because it does not exist in the current layout. Only A and B
' exist in the current layout. NewBandLoadStyle works in a similar manner
' however with the bands. Note that you must set these properties before
' setting the DataSource.
Me.UltraGrid1.DisplayLayout.NewColumnLoadStyle = NewColumnLoadStyle.Hide
Me.UltraGrid1.DisplayLayout.NewBandLoadStyle = NewBandLoadStyle.Hide
Me.UltraGrid1.DataSource = DataSet1
End Sub