Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button2.Click
' Disallow users to move columns. Properties set on DisplayLayout's Override
' effect the whole grid.
Me.UltraGrid1.DisplayLayout.Override.AllowColMoving = AllowColMoving.WithinBand
' You can override above grid-wide setting for a particular band by setting the
' property in question to a non-default value in the Override object of that
' band.
Me.UltraGrid1.DisplayLayout.Bands(0).Override.AllowColMoving = AllowColMoving.NotAllowed
End Sub