Resize the Grid

hi
How to Change the grid size dynamically
e.g. 1. if you maximize the window
2. if we are using grid in our code within table and table has two td with width 50% , Suppose if we hide one td i want to increase grid size.

i am using mygrid.setSizes(); but it is not happening

thank you

Shriniket

You can use columns width in percents using setInitWidthsP() method. Example is available here dhtmlx.com/docs/products/dht … esize.html