DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### setColWidth(ind, value)

Required library edition:
Required library file: dhtmlxgrid.js

sets width of specified column in pixels (soen't works with procent based grid)

- ind - column index
- value - new width value

       //set first column width
       mygrid.setColWidth(0,"150");

See also: setColTypes, setColSorting, setColAlign, setColVAlign, setColumnMinWidth