Hightlight grid cell text on doubleclick

Hi,

For now when I double click or single click(if lightmousenavigation is enabled) the cell becomes editable but along with it we want the content of the cell to be highlighted… can this be achieved?





Thanks in Advance


You can use following code:


mygrid.attachEvent(“onEditCell”,function(stage,rowId,cellIndex){
if (stage==1){
this.editor.obj.style.color=“red”;
this.editor.obj.style.background=“blue”;
}
return true;
});


If your grid has big amound of rows using such code can decrease grid’s perfomance. In such case better to implement custom eXcell type. Please see more information here dhtmlx.com/docs/products/dhtmlxG … #grid_cexc