Sorry, I don't understand your answer.
This is the function called after an user event:
function mouveRowDg_toTop(dg,indexRow,row)
{
if (indexRow > 0)
{
dg.datagrid('deleteRow', indexRow);
dg.datagrid('insertRow', {index:0,row:row});
dg.datagrid('selectRow', 0).datagrid('scrollTo', 0);
}
}
The datagrid is loaded with all element, the problem is: put the text on bold with a backgroud color, after the row is mouved to the top.
How I can do it?