バージョン

AllowAddNew 列挙体

オーバーライドの UltraGridOverride.AllowAddNew プロパティを指定するために使用される列挙体。
シンタックス
'宣言
 
Public Enum AllowAddNew 
   Inherits System.Enum
public enum AllowAddNew : System.Enum 
メンバ
メンバ解説
Defaultデフォルトを使用します。オブジェクトの親の設定が使用されます。
FixedAddRowOnBottom固定テンプレート追加行を行コレクションの最後の行にします。FixedAddRowOnBottom オプションは、すべての行コレクションの固定 (非スクロール) 追加行を行コレクションの最後の行として表示します。ユーザーはこのテンプレート追加行に入力するだけで新しい行を追加できます。
FixedAddRowOnTop固定テンプレート追加行を行コレクションの最初の行にします。FixedAddRowOnTop オプションは、すべての行コレクションの固定(非スクロール)追加行を行コレクションの最初の行として表示します。ユーザーはこのテンプレート追加行に入力するだけで新しい行を追加できます。
No不可。 ユーザーは新しい行を追加できません。
TabRepeatユーザーが新しい行を追加できます。AddNew行の最終セルの中で[Tab]キーを押すと、自動的に新しい行が追加されます。
TemplateOnBottomテンプレート追加行を行コレクションの最後の行にします。TemplateOnBottom オプションは、すべての行コレクションの追加行を行コレクションの最後の行として表示します。ユーザーはこのテンプレート追加行に入力するだけで新しい行を追加できます。
TemplateOnTopテンプレート追加行を行コレクションの最初の行にします。TemplateOnTop オプションは、すべての行コレクションの追加行を行コレクションの最初の行として表示します。ユーザーはこのテンプレート追加行に入力するだけで新しい行を追加できます。
TemplateOnTopWithTabRepeatTemplateOnTop とよく似ていますが、追加行で TemplateOnTopWithTabRepeat を押すと、行コレクションに関連付けられたテンプレート追加行に移動する点が異なります。これは、キーボードで複数の行を追加する場合に便利です。
Yesはい、できます。ユーザーが新しい行を追加できます。
解説

AllowAddNew 列挙体は、オーバーライドの UltraGridOverride.AllowAddNew プロパティを指定するために使用されます。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button31_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button31.Click

      ' There are three properties off the override that control whether modifying rows
      ' as well as adding and deleting rows are allowed. If you set these properties
      ' on the Override off the DisplayLayout, then these settings apply to the whole 
      ' UltraGrid.
      Me.ultraGrid1.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True
      Me.ultraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.No
      Me.ultraGrid1.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False

      ' You can set them on a specific band as well. These settings override those
      ' set on the DisplayLayout's Override object for this band.
      Me.ultraGrid1.DisplayLayout.Bands(0).Override.AllowUpdate = DefaultableBoolean.True
      Me.ultraGrid1.DisplayLayout.Bands(0).Override.AllowAddNew = AllowAddNew.No
      Me.ultraGrid1.DisplayLayout.Bands(0).Override.AllowDelete = DefaultableBoolean.False

      ' There are Activation properties on row, column and cells that dictate whether 
      ' associated cells can be modified, or can even enter in edit mode.
      Dim column As UltraGridColumn = Me.ultraGrid1.DisplayLayout.Bands(0).Columns("CustomerID")
      Dim row As UltraGridRow = Me.ultraGrid1.Rows(0)

      ' Set the CellActivation off the column something other than AllowEdit to prevent
      ' the user from modifying cells in that column. ActivateOnly allows the user to 
      ' go into edit mode so the user can select and copy text, however the cell will
      ' be read-only thus preventing any data modification.
      column.CellActivation = Activation.ActivateOnly

      ' You can override cell activation setting for a particular row. 
      row.Activation = Activation.ActivateOnly

      ' Furthermore you can override activation on a cell as well.
      row.Cells(column).Activation = Activation.AllowEdit

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// There are three properties off the override that control whether modifying rows
	// as well as adding and deleting rows are allowed. If you set these properties
	// on the Override off the DisplayLayout, then these settings apply to the whole 
	// UltraGrid.
	this.ultraGrid1.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True;
	this.ultraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
	this.ultraGrid1.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False;

	// You can set them on a specific band as well. These settings override those
	// set on the DisplayLayout's Override object for this band.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.AllowUpdate = DefaultableBoolean.True;
	this.ultraGrid1.DisplayLayout.Bands[0].Override.AllowAddNew = AllowAddNew.No;
	this.ultraGrid1.DisplayLayout.Bands[0].Override.AllowDelete = DefaultableBoolean.False;
	
	// There are Activation properties on row, column and cells that dictate whether 
	// associated cells can be modified, or can even enter in edit mode.
	UltraGridColumn column	= this.ultraGrid1.DisplayLayout.Bands[0].Columns["CustomerID"];
	UltraGridRow	row		= this.ultraGrid1.Rows[0];

	// Set the CellActivation off the column something other than AllowEdit to prevent
	// the user from modifying cells in that column. ActivateOnly allows the user to 
	// go into edit mode so the user can select and copy text, however the cell will
	// be read-only thus preventing any data modification.
	column.CellActivation = Activation.ActivateOnly;
	
	// You can override cell activation setting for a particular row. 
	row.Activation = Activation.ActivateOnly;

	// Furthermore you can override activation on a cell as well.
	row.Cells[column].Activation = Activation.AllowEdit;

}
参照