Datagrid height question

Hi,



Can anyone tell me how to set the height of the whole grid?

I tried to give as a table tag element, as a style element, from css but no success…



here’s my table

    





with this init:

var mygrid = new dhtmlXGridFromTable(‘tblToGrid’);



if I add more row, the whole grid height with the Y scrollbar will increase…

I’ve tried mygrid.enableAutoHeight(false,60); but ain’t work…



any guess? i’m desperate…



thanks a lot

By default, when converting from HTML table, grid detects height in next order
    - check height attribute
    - check gridHeight attribute
    - check height style
    - if none above set, current table offset height used

To enable auto-height mode for grid converted from HTML you can use
    <table gridHeight=“auto” …