Infragistics(R) NetAdvantage(R) Windows Forms
AllowGroupMoving Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : AllowGroupMoving Enumeration

Used to specify whether groups can be moved.

Syntax

Visual Basic (Declaration) 
Public Enum AllowGroupMoving 
   Inherits System.Enum
C# 
public enum AllowGroupMoving : System.Enum 

Members

MemberDescription
Default Use Default. The setting of the object's parent will be used.
NotAllowed Not Allowed. Groups cannot be moved by the user.
WithinBand Within 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.

Example

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

Visual BasicCopy Code
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
C#Copy Code
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;		

}

Remarks

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

See Also