How to change the color of link based on a condition

Hi All, how to change the color of the link based on condition , i have tried the below

gridPotList.cells(id,1).setAttribute(“style”,“div.gridbox .objbox a {color:red !important;text-decoration:none !important;}”);
//gridPotList.setCellTextStyle(id,1,“div.gridbox .objbox a {color:red !important;text-decoration:none !important;}”);

				 /*
				 var style = gridPotList.cells(id,1).cell.style;
				 alert(style.cssText);
			     style.cssText = "a-color:white !important;";

nothing is working

also setcolor which internally used this.cell.style.color is not ablke to apply the color

Try to use

gridPotList.setCellTextStyle(id,1,"color:red !important;text-decoration:none !important");

not working!!!

doe benifit of all what i did waschanged the api code to take “id” as a additional param and add value to it by modifying dhtmlxgrid_excell_link.js.