Datagrid KeyPress

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • costas
    New Member
    • Oct 2007
    • 10

    #1

    Datagrid KeyPress

    Hi, I'm writing a program in C#. I have added keyevents on a form. The form contains a datagrid. The key events do not work when I am within the cells of the datagrid. I want to be able to press F1 in the datagrid and have it perform a click on a specific button. Can anyone help?
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    Create ur own handler like,

    dg1.KeyDown = KeyEventHandler (this.dg1_KeyDo wn)

    Comment

    Working...