PDA

View Full Version : grid editable column



emmas
1 Feb 2010, 1:51 PM
Hi, i need to make one of the columns of the grid editable, i added this code, but it's not working. What am i missing:


TextField<String> text = new TextField<String>();
CellEditor tce = new CellEditor(text);
getResultGrid().getColumnModel().getColumn(1).setEditor(tce);

Thanks

micgala
2 Feb 2010, 2:24 AM
Hi.

Is your grid an EditorGrid?

Regards,
Michel.

emmas
2 Feb 2010, 2:09 PM
Thanks Michel very much, i missed that part, i had it as Grid instead of EditorGrid. It's working now. Thank you.