Posted on: 9/6/2014 5:51:35 AM | Views : 354

Hi,
 I changed background color of checked row using javascript like below...
 
function Check_Click(objRef) { //Get the Row based on checkbox
var row = objRef.parentNode.parentNode; if (objRef.checked) { //If checked change color to Aqua row.style.backgroundColor = "#fbec88"; } else { / row.style.backgroundColor = "white"; }
}

And in my else condition now i want to change the color based on some condition of gridview cell i.e if cell value =="something" change it to red else change it to white

please help me how i can do this else part of my above javascript code

Thanks in advance

 

Go to the complete details ...