Version

AllowColMoving Enumeration

Used to specify whether columns can be moved.
Syntax
'Declaration
 
Public Enum AllowColMoving 
   Inherits System.Enum
public enum AllowColMoving : System.Enum 
Members
MemberDescription
DefaultUse Default. The setting of the object's parent will be used.
NotAllowedNot Allowed. Columns cannot be moved by the user.
WithinBandWithin Band. Columns can be moved by the user within the same Band.
WithinGroupWithin Group. Columns can be moved by the user within the same Group.
Remarks

AllowColMoving enum is used for specifying the Override's UltraGridOverride.AllowColMoving property.

Example
Following code sets AllowColMoving on the layout's Override and the band's Override.

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
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// Disallow users to move columns. Properties set on DisplayLayout's Override
	// effect the whole grid.
	this.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.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.AllowColMoving = AllowColMoving.NotAllowed;

}
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