Check documentation for the latest version 6.0 of dhtmlxSuite setColLabel DHTMLX Docs

setColLabel

sets a new label for the column header

void setColLabel(number col,number ind);

Parameters

colnumberthe index of the header column
indnumberthe index of the header row (default is 0)

Example

//set a new label for the first column
mygrid.setColLabel(0,"New Column Label");
//set a new label for the second line of the first column
mygrid.setColLabel(0,"Some Other Label",1);

Back to top