pink color for read only columns

hi…
i want to give pink color for read only columns.
and same fields should be pink on adding new row.

Thank You

Hi Abhi,

try this,

[code]mygrid.init();
mygrid.attachEvent(“onRowCreated”, function(id,ind){
// id is row number
//ind is column number.
//if ur read only column is 2

 if(ind==2){
         mygrid.setCellTextStyle(id, 2, "background-color:pink;");
 }

});
mygrid.loadXML(“get.php”);
[/code]
hope help this one,

Thank You Vijai
It is working fine but when i selecting that row and again deselecting the color is vanished.

here its working fine,
if possible post your code…will chk & try.