Hi,
As the error message said, No row can be inserted after the uncommitted new row.
If DataGridView.AllowUserToAddRows property is set to true (default setting), a special row for adding new rows appears as the last row. It is marked with an asterisk (*) symbol in its row header. This row is part of the Rows collection, but it has special functionality that may require your attention. Please see
Using the Row for New Records in the Windows Forms DataGridView Control
http://msdn.microsoft.com/en-us/library/ka3w9f4d.aspx
If you want insert row at the end of datagridview, you can set datagridview.AllowUserToAddRows to false, or insert at Me.DGVTemplate.Rows.Count -1 .
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.