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

Used to specify whether columns can be moved.

Syntax

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

Members

MemberDescription
Default Use Default. The setting of the object's parent will be used.
NotAllowed Not Allowed. Columns cannot be moved by the user.
WithinBand Within Band. Columns can be moved by the user within the same Band.
WithinGroup Within Group. Columns can be moved by the user within the same Group.

Example

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

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

}

Remarks

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

See Also