addRow(dataRow, addRowDirection)

// Samples
grid1.addRow({}, 'after');
grid1.addRow({}, 'before');
grid1.addRow({}, 'top');
grid1.addRow({}, 'bottom');

Row object structure.

// Samples
const rows = grid1.getCheckedRows();  // by checkbox
//const rows = grid1.getSelectedRows(); // by selection
grid1.removeRows(rows);