Pass rowIndx parameter to addRow method.
In case of cell selections, selected rowIndx can be obtained from Selection() API
var ri = grid.Selection().address()[0].r1;
grid.addRow({
rowIndx: ri + 1,
newRow: rowData
})
In case of row selections, rowIndx can be obtained from SelectRow() API