DHTMLX Docs & Samples Explorer

setColumnMinWidth(width, ind)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

set minimum column width (works only for manual resizing)

  • width - minimum column width, can be set for specified column, or as comma separated list for all columns
  • ind - column index
   //set first column min width
   mygrid.setColumnMinWidth(50,0);
   //set columns min widths
   mygrid.setColumnMinWidth("50,100,100,150,200,100,150");

See also: enableAutoWidth, setColWidth