How to set row height?

Hi, All

I would like to know if there is an easy way to setup row height for all rows on a dhtmlxgrid.

thanks in advance

Anybody there?

You need to set this style. You can put it in a style tag in the head of your page, or in a style sheet that’s referenced after the dhtmlXGrid style sheet(s). This example sets the height to 25px:

    <style type="text/css">
    div.gridbox table.row20px tr  td{
    height:25px;
}

</style>

If you’re using smart rendering, you need to tell the grid the new height so it will render properly:

myGrid.setAwaitedRowHeight(25);

Thank you very much! It worked perfectly!

I still had to change background-image:

div.gridbox_dhx_skyblue table.obj.row20px tr.rowselected td {
background-image:url(…/imgs/sky_blue_sel_30.png);
}

for a 30 pixels height one (since I was using skyblue skin), but after your clues, it made easy!

You have saved my life :slight_smile: