Show Serial no in first coulmn of Grid

Hi I have to show serial no of the row in the first column of the grid. Drag and Drop is enabled on this grid. As soon as i drag and drop the serial no should get updated automatically.



How can i achieve this.



Thanks



Sam

  • include codebase/excells/dhtmlxgrid_excell_cntr.js
    - set type of first column as “cntr”
    - add next line to grid init
    mygrid.attachEvent(“onDrop”,function(){
    mygrid.resetCounter(0);
    });