|
-
Mar 14th, 2018, 10:07 AM
#1
Thread Starter
Member
DataGridView Events
I've created a tiny app to test events from an unbound DGV. I've never used the dgv before and want to see which events happen when, all the test app does is to debug print which event happens so the only code is a sequence of event handlers. I've got most of the common Cell events covered such as CellLeave, CellEnter. etc., plus grid events Keydown, up and press. It's very important that I can detect keystrokes because the real app has to change some of them (for example from lower to upper) and also tell when shift was pressed with a char.
I start in cell 0,0, press tab followed by key a, followed by another tab, I get the following:
Key Down
CellLeave
CellValidating
CellEnter
Key Press (tab)
Key Up (tab)
CellBeginEdit (this is the 'a' press)
CellLeave (the 2nd tab)
CellValidating
CellValueChanged
CellEndEdit
CellEnter
Key Up (the 2nd tab)
But this sequence is useless, as soon as I press 'a' and get CellBeginEdit it stops reporting keys, I can type away for ever and it never generates an event to report keypresses, until I tab out of the cell.
Is this a bug?
Is there any way to get the missing keystrokes?
Thanks for any help
Ian
Last edited by IanBrooke; Mar 14th, 2018 at 10:10 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|