I'm using UltraGrid in my application, PS attached sample.
This grid's ultraGridColumn60 column's EditorComponent property is assigned to object of UltraTextEditor(ultraTextEditor2).
When I start typing(this is test ..), TextChanged, KeyPress and PreviewKeyDown events are not fired. what could be the reason?
PreviewKeyDown is an event on the grid because the grid inherits from Control. The attached screenshot shows the event in the grid's property grid.
Looks like I can use KeyDown to detect the key combination I'm interested in. You can disregard my question.
Hi David,
I'm a little confused what you mean about "PreviewKeyDown." That's an event on the Form, not the UltraTextEditor or the grid. The PreviewKeyDown event will work on any control and I don't see how that's relevant to this thread in any way.
Are you saying PreviewKeyDown of your Form is not firing when focus is on the grid? There's nothing in the grid that could prevent that event from firing and I've never heard of any problems like that. My best guess is that CTRL+Q is getting intercepted and handled by some other control (like a Toolbar or ContextMenu) - but that would not be specific to just the grid - it would happen for any control on the form.
So ... what event should we handle in place of PreviewKeyDown or some other way to respond to a key combination like CTRL+Q?
This is intentional. The editor component provides a copy of it's internal editor for use by the grid, but the grid isn't using the actual control.
The grid has it's own events you can use.