CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    106

    Datagridview key events during editing

    I use a datagridview where certain cells should be editable by typing (Editmode = EditOnEnter)
    If the user presses F2 or F5 in a cell there should pop up a form where he can do a selection of a range of values that will be passed to the cell

    When the user is editing the cell the event for keyup (and keydown, keypress etc) do not fire anymore.

    How can I catch the keyup event in editmode ?

    The event should trigger on F2 or F5 (using other keys is not an option)

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Datagridview key events during editing

    You can remove the event when starting to edit and after finished editing add the event again.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    106

    Re: Datagridview key events during editing

    Quote Originally Posted by dannystommen View Post
    You can remove the event when starting to edit and after finished editing add the event again.
    Just the other way round, there is no keyup event anymore in editmode with editonenter as editmode. I want to create an event, not remove it.

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
  •  





Click Here to Expand Forum to Full Width

Featured