追加行機能を有効にするには、Override の 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 ); }