Here is an example of implementation of counter in dhtmlxGrid using eXcell type "cntr".
The corresponding cell value in XML should be any