'宣言 Public Enum AllowColMoving Inherits System.Enum
public enum AllowColMoving : System.Enum
メンバ | 解説 |
---|---|
Default | デフォルトを使用します。オブジェクトの親の設定が使用されます。 |
NotAllowed | 不可。ユーザーは列を移動できません。 |
WithinBand | バンド内。ユーザーは列を同一バンド内で移動できます。 |
WithinGroup | グループ内。ユーザーは列を同一グループ内で移動できます。 |
AllowColMoving 列挙体は、オーバーライドの UltraGridOverride.AllowColMoving プロパティを指定するために使用されます。
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; }