Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kanana on Sep 26, 2008 04:14
open dhtmlx forum
Column in Bold ?

Hi,

I'd like to know if there is a synthaxe to indicate that the first column text should be in bold ?

Thanks

Kanana
Answer posted by Stanislav on Sep 29, 2008 16:09
There is no way to assign custom style|class to the column
You can use onRowCreated event for such task

mygrid.attachEvent("onRowCreated", function(id){
     mygrid.cells(id,0).cell.style.fontWeight="bold";
     return true;
});

Alternativly, it can be done , just by looping through all rows ( grid.forEachRow ) and setting bold style in same way