'Declaration Public Enum AllowColMoving Inherits System.Enum
public enum AllowColMoving : System.Enum
Member | Description |
---|---|
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. |
AllowColMoving enum is used for specifying the Override's UltraGridOverride.AllowColMoving property.
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
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; }
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