DHTMLX Docs & Samples Explorer

setHorAlign(value)

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

sets the horizontal alignment in the cell

  • value - (string) the horizontal alignment.
    Possible values:
    • 'r' or 'right' - the right alignment
    • 'l' or 'left' - the left alignment
    • 'c' or 'center' - the center alignment
mygrid.cells("row1",1).setHorAlign('r');

See also: getHorAlign