$("#mylist").jqGrid({
…
colModel:[
...
{name:'value', width:100, align:'right', cellattr:valueAttr, ....},
...
],
…
});
function valueAttr(rowId, cellValue, rawObject, cm, rdata)
{
if (cellValue < 0) {
return ‘ style="color: red"‘;
} else {
return ‘ style="color: green"‘;
}
}