バージョン

TemplateAddRow プロパティ (RowsCollection)

この行コレクションに関連付けられたテンプレート追加行を返します。
シンタックス
'宣言
 
Public ReadOnly Property TemplateAddRow As UltraGridRow
public UltraGridRow TemplateAddRow {get;}
解説

この行コレクションに関連付けられたテンプレート追加行を返します。

追加行機能を有効にするには、Override の UltraGridOverride.AllowAddNew プロパティを使用します。詳細については、AllowAddNew 列挙体を参照してください。

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


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' Turn on the add-row feature.
        Me.UltraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom

        ' Get the template add-row object for the top-most rows collection.
        Dim templateAddRow As UltraGridRow = Me.UltraGrid1.Rows.TemplateAddRow

        ' IsTemplateAddRow will return true if the row is a template add-row.
        Debug.WriteLine("Is Template Add Row ? " & templateAddRow.IsTemplateAddRow)
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// Turn on the add-row feature.
			this.ultraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom;

			// Get the template add-row object for the top-most rows collection.
			UltraGridRow templateAddRow = this.ultraGrid1.Rows.TemplateAddRow;

			// IsTemplateAddRow will return true if the row is a template add-row.
			Debug.WriteLine( "Is Template Add Row ? " + templateAddRow.IsTemplateAddRow );
		}
参照