Check documentation for the latest version of dhtmlxSuite setColWidth DHTMLX Docs

setColWidth

sets the width for the specified column in pixels (doesn't work with the percentage based grid)

void setColWidth(number ind,string value);
indnumberthe index of a column
valuestringa new width value

Example

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

Back to top