Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rich on May 28, 2008 10:30
open dhtmlx forum
Dhtmlx Grid: highlight current cell

Is there a quick way to highlight the current cell in the grid?
Answer posted by Support on May 29, 2008 04:14
The grid has predefined css rule for selected cell, which can be changed in dhtmlxgrid.css

div.gridbox table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected {
    background-color:#d8d8d8;
    color:black;
    }
( Actually there are few similar rules - for different skins )

If necessary, the currently selected cell can be accessed as grid.cell from js code
    if (grid.cell) grid.cell.className="selected"