Hi thunderstorm,
Sorry for the delayed response. Yes, you can do this with code. Disable the "normal" methods of inserting rows in the table properties dialog, then create a custom button that looks exactly like the links you just disabled. In the OnClick of that button, create the nodes and insert them into the DOM.
If you search these forums for this topic, you should see plenty of posts with code examples on how to do this.
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge