How can I have a cntr column in dhxGrid


There is a cntr column type in dhx5, it’s useful. I cannot find it in dhx7, is it supported now, or any other solution? Thanks


You may try to use the column template for the column formatting:


Thank sematik. It‘s useful.

var mygrid = new GridDHX(null, {
  data: this.mydata,
  columns: [
        id: "cntr",
        header: [{ text: "序号", align: "center" }],
            return that.mydata.getIndex(;