Hi,
I put a combo editor in tree node using the following code, and subscribe the KeyUp event of the embedded editor. It works well before I set DropDownStyle to DropDownList.
After setting DropDownStyle to DropDownList, I found that editor_KeyUp is not invoked when the keyboard is pressed.
Could anyone tell me what the problem is? Thanks a lot!
UltraComboEditor editorControl= new UltraComboEditor();
editorControl.DropDownStyle = DropDownStyle.DropDownList;
node.Cells[column].EditorControl = editorControl;
EmbeddableEditorBase editor = node.Cells[column].EditorResolved;
editor.KeyUp += new KeyEventHandler(editor_KeyUp);
My guess is that the tree is processing the KeyDown message and not the editor. Does the KeyUp event of the tree control fire?
Mike,
You are right, the KeyUp event of the tree control is fired.
My solution is to subscribe the event of the tree instead of the editor although it seems a little weird to me.
Thanks!