Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Atif Ghaffar on Aug 15, 2009 03:32
open dhtmlx forum
How to lock a column in a grid so that the sorting does not affect it

Hi.

Is it possible to lock the first column so that it can be used as a line number and stays the same when sorting by othere criterias.

For example have a look at this one.
http://worldsoft-oasis.info/tools/wtc/ga_stats.php

When first loaded the numbers run from 1 to xx but when sorted, they get sorted out too.
What I would like is that the first column does not change regardless of the sort.
The XML data for this is http://worldsoft-oasis.info/tools/wtc/ga_stats_data.php

Is this possible.

Thanks fo your help and best regards


Answer posted by dhxSupport on Aug 17, 2009 00:49
You can do that using "cntr" eXcell type (available in PRO version only). Please find example here http://dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/pro_excell_cntr.html