Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Amb on Nov 11, 2008 03:51
open dhtmlx forum
Grid cellInd and column moving

I'm using the cellInd to determine which column is selected in a double click event. But this changes when the user moves columns around. How can I pass the column name instead?
Answer posted by Support on Nov 11, 2008 04:07
The events will always provide column index, but you can convert it to the column ID ( need to be defined by setColumnIds or by column@id )  as
   var id = grid.getColumnId(columnIndex);