10451 : Could you please help me to get content of grids cell (SingleText) during editing.

Question

Hello guys. Could you please help me to get content of grid’s cell (SingleText) during editing. I can use onAfterEdit and onBeforeEndEdit, but I need content of cell during editing -for example, if I’m typing word in the cell and want to repeat this word in another field during typing, not after end editing. If you have any sugestions. Thanks a lot.

Answer

In the OnBeforeEditCell event you can set up a event handler to the inplace editor that will be used in the edit. You gain access to the Editor here: Grid.CurrentEditor (make sure you have a late version, this is rather new)

(Gantt.Grid.CurrentEditor as TextBox).TextChanged += new System.EventHandler(this.inplaceedit_TextChanged);

Leave a Reply