Users on the InfoPathDev forum frequently ask how they can add rows to repeating groups from code. There is a relatively simple way to do this, but it has a few limitations. I may write another blog post later that describes a more general approach that is trickier but does not have these limitations...