I am not clear on the complete requirement, but as far as adding a row under the row that is clicked, try this on button click
headersubform.tablesubform.tablesubforms.Table1.Row1.instanceManager.insertInstance(this.parent.index + 1, 0);
You may have to modify this.parent.index , seems you have more...