Version

AllowGroupMoving Property

Returns or sets a value that determines whether the user is allowed move groups.
Syntax
'Declaration
 
Public Property AllowGroupMoving As AllowGroupMoving
public AllowGroupMoving AllowGroupMoving {get; set;}
Remarks

The AllowGroupMoving property determines whether groups can be moved by the user in the band or the grid controlled by the specified override. Depending on the setting of AllowGroupMoving, users can move groups anywhere within the band, or not at all. In order for the user to be able to move groups, group headers must be visible. If AllowGroupMoving is set to allow group moving, group headers become draggable, and are used to re-arrange the order of the groups via the mouse.

This property does not affect the ability of users to swap groups using the group swapping dropdown found in the group header (controlled by the AllowGroupSwapping property) or on the ability of the user to move columns within the grid (controlled by the AllowColMoving 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