DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### setColLabel(col, label, ind)

Required library edition:
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 0)

Both column and row indexes, are zero based

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

See also: getColumnLabel, setFooterLabel