Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by rachna on Nov 27, 2008 05:12
open dhtmlx forum
Change the index of the cell manually

Hi!,

i am just trying to change the index of the cell and want to set it manually

like after doing colspan i want to set the grid cell as what i want

can this be possible in this no matter if it is in buy version we can go for that if possible

waiting to hear from u soon

regards,
rachna
Answer posted by Support on Nov 27, 2008 05:21
Colspans supported only in pro version ( you can contact us at sales@dhtmlx.com and request evaluation version to try functionality ) 
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/rows_columns_manipulations/pro_colspan.html?un=1227793502000

The value setting available in both versions, it can be done as
    grid.cells(i,j).setValue(some)

Answer posted on Nov 27, 2008 05:40

Hi

thanks for ur such a great speedy reply sir

 

but i want to know that can we set the INDEX of the cell which we can retreive by _cellIndex like that

thanks a lot

Answer posted on Nov 27, 2008 07:10
The indexes of cell are fixed and can't be changed ( they are numbers from 0 to N )
If you need to have some unique-per-column identificators, you can use column ID ( grid.setColumnIds, grid.setColumnId , column@id ) - you will be able to convert id to index and back by grid.getColumnId and grid.getColIndexById