Check documentation for the latest version of dhtmlxSuite setColumnLabel DHTMLX Docs

setColumnLabel

sets a new column header label

void setColumnLabel(number colIndex,string label,number rowIndex);
colIndexnumberthe index of the header column
labelstringa text for a new column header label
rowIndexnumberthe index of the header row (the default one is 1)

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,"New Column Label",1);

Back to top