Adding CSS class to a row depending on a cell value

Hi,
I would like to add a CSS class name to a row depending on the value of a cell in the row. I tried the following code but it dos not work … any help please ?
Best regards, Frédéric

myGrid.forEachRow(function(idLigne) {
	var className=myGrid.cells(idLigne,2).getValue();
	myGrid.setRowAttribute(idLigne,"class",className);
});

Up …
Nobody has any idea about my problem ?

Best regards, Frédéric.

Unfortunately such feature is not available.
setRowAttribute() method was designed for the customs user’s attributes and won’t work with html attributes.