DataGridView and KeyDown event

  • Thread starter Thread starter M K
  • Start date Start date
M

M K

My dg is loaded (from stored procedure) and has 1 record in it. When I
press enter on that row it does nothing (I have a breakpoint just inside the
code where i check for enter pressed)

if (e.KeyData == Keys.Enter)

It never goes into that event.

For the DataGridView I have:
ReadOnly = false
multi select = false
edit mode = EditOnKeystrokeOrF2
SelectionMode = FullRowSelect

what am i missing?
 
guess i need to stop posting.. right after i do i figure it out.

i had added the event manually and did not select it from the event list for
that control (didnt see the lightning bolt)

weeeeeeeeeee isnt this fun!
 
guess i need to stop posting.. right after i do i figure it out.

If you don't post, how are you ever going to figure it out, if you only
figure it out right after you post?

:)
 
Back
Top