Insert rows in Form Application Multiple rows programmatically

how insert rows in Form Application Multiple rows programmatically and save only selected rows