Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click
' Split the column-scroll-region and the row-scroll-region each.
Me.ultraGrid1.DisplayLayout.ColScrollRegions(0).Split()
Me.ultraGrid1.DisplayLayout.RowScrollRegions(0).Split()
' Set the max regions the grid can have preventing the user from splitting
' any more than the max.
Me.ultraGrid1.DisplayLayout.MaxColScrollRegions = 2
Me.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 2
' Set the sizing mode to Fixed, so the user can't resize the scroll regions.
Me.ultraGrid1.DisplayLayout.RowScrollRegions(0).SizingMode = SizingMode.Fixed
Me.ultraGrid1.DisplayLayout.RowScrollRegions(1).SizingMode = SizingMode.Fixed
Me.ultraGrid1.DisplayLayout.ColScrollRegions(0).SizingMode = SizingMode.Fixed
Me.ultraGrid1.DisplayLayout.ColScrollRegions(1).SizingMode = SizingMode.Fixed
End Sub