set Id to row Datatable code example
Example: datatable set row id
var table = $("#tablid").DataTable();
var row = table.row("[id='"+id+"']");
row.row("[id='" + id + "']").data([x0, x1, x2, x3]);
row.draw();
var table = $("#tablid").DataTable();
var row = table.row("[id='"+id+"']");
row.row("[id='" + id + "']").data([x0, x1, x2, x3]);
row.draw();