Version

IsTemplateAddRow Property

Indicates whether this row is a template add-row.
Syntax
'Declaration
 
Public ReadOnly Property IsTemplateAddRow As Boolean
public bool IsTemplateAddRow {get;}
Remarks

The Override's AllowAddNew can be used to enabled add-row functionality.

Example
Following code demonstrates the use of TemplateAddRow property off RowsCollection and IsTemplateAddRow property off the UltraGridRow object.

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 );
		}
Requirements

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

See Also