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

Enum for specifying whether groups are allowed to swap with other groups.

Syntax

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

Members

MemberDescription
Default default group swapping style
NotAllowed do not allow swapping
WithinBand allow group swapping within bands

Example

Following code sets the AllowGroupSwapping on the layout's override and a band's override.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click

      ' Set AllowGroupSwapping to true to enable group swapping feature. When enabled, 
      ' the UltraGrid displays small drop down arrows on the group headers which when
      ' clicked upon drop down a drop down from which the user can select a different
      ' group to swap with.
      Me.UltraGrid1.DisplayLayout.Override.AllowGroupSwapping = AllowGroupSwapping.WithinBand

      ' 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.AllowGroupSwapping = AllowGroupSwapping.WithinBand

  End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// Set AllowGroupSwapping to true to enable group swapping feature. When enabled, 
	// the UltraGrid displays small drop down arrows on the group headers which when
	// clicked upon drop down a drop down from which the user can select a different
	// group to swap with.
	this.ultraGrid1.DisplayLayout.Override.AllowGroupSwapping = AllowGroupSwapping.WithinBand;

	// 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.AllowGroupSwapping = AllowGroupSwapping.WithinBand;

}

See Also