Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DJ on Jan 19, 2009 14:55
open dhtmlx forum
Fix Row Counter Column

Is there a way to have the 1st column like the row number in Excel. This means that even if I delete a line 2, the second line will still have number 2 (and not number 3 like we have with CNTR type).
Also, Is it possible that this row is not include in LOAD XML or SERIALIZE functions?

thank you,
Answer posted by Support on Jan 20, 2009 07:46
You can use cntr column type, just add the next line

grid.attachEvent("onAfterRowDeleted",function(){
     grid.resetCounter(0);
});

It will update cntr column each time after row deleted