How to get a cell from a dinamically created row ?

How to get a cell from a dinamically created row ?

ComodeComode Posts: 7Questions: 2Answers: 0

Hello,

I dinamically fill a datatable with the code below :

var myTab = $("#mv_table_comp").DataTable().clear();
for(var i in datas)
{
    var tmprow = myTab.row.add( [
                            datas[i].name , 
                            datas[i].mParam, 
                            datas[i].text
                            ]
                            ).node();
    $(tmprow).data("id_user", datas[i].id_user).on("click", function(event){ReadSheet($(this).data('id_user')); });
}
myTab.draw();

It works fine.

Now, i'd like to add data("sort", myValue) to the third cell of my row...

How do i do that ?

Thx in advance

This discussion has been closed.