DHTMLX Docs & Samples Explorer

setColumnLabel(col, label, ind)

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

sets new column header label

  • col - header column index
  • label - new label for the cpecified header's column. Can contai img:[imageUrl]Text Label
  • ind - header row index (default is 1)
   //set new label for the first column
   mygrid.setColumnLabel(0,"New Column Label");
   //set new label for the second line of the first column
   mygrid.setColumnLabel(0,"New Column Label",1);

See also: getColumnLabel, setFooterLabel