DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### setSortImgState(state, ind, order, row)

Required library edition:
Required library file: dhtmlxgrid.js

sets position and visibility of sort arrow

- state - true/false - show/hide image
- ind - index of column
- order - asc/desc - type of image (optional, “asc” by default)
- row - one based index of header row (used in multirow headers, top row by default)

       //minimal parameters set
       mygrid.setSortImgState(true,1)
       //maximal parameters set
       mygrid.setSortImgState(true,1,"des",2)
       //hide sorting image
       mygrid.setSortImgState(false)

See also: sortRows