Version

AllowGroupMoving Enumeration

Used to specify whether groups can be moved.
Syntax
'Declaration
 
Public Enum AllowGroupMoving 
   Inherits System.Enum
public enum AllowGroupMoving : System.Enum 
Members
MemberDescription
DefaultUse Default. The setting of the object's parent will be used.
NotAllowedNot Allowed. Groups cannot be moved by the user.
WithinBandWithin Band. Groups can be moved by the user within the same band.
WithinGroupWithin Group. Groups can be moved by the user within the same Group. This option is only supported when UltraGridBand.RowLayoutStyle RowLayoutStyle is set to GroupLayout.
Remarks

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

Example
Following code sets AllowGroupMoving on the layout's override as well as a band's override.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button4.Click

      ' Disallow users to move groups.
      Me.UltraGrid1.DisplayLayout.Override.AllowGroupMoving = AllowGroupMoving.NotAllowed

      ' You can override above grid-wide settings on 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.AllowGroupMoving = AllowGroupMoving.WithinBand

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// Disallow users to move groups.
	this.ultraGrid1.DisplayLayout.Override.AllowGroupMoving = AllowGroupMoving.NotAllowed;

	// You can override above grid-wide settings on 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.AllowGroupMoving = AllowGroupMoving.WithinBand;		

}
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