Keypress event not working in datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy

    Keypress event not working in datagrid

    Hi all,
    I'm a beginner. I have a problem. In my datagrid i have read only data
    grid. I written code to delete a row by using delete key in keydown
    event of datagrid. But this event is not always firing. I have to
    select index using mouse and when i press delete key the arrow icon
    change into a pen. And then i have to click the same row with the
    mouse and then press delete key. Now it's works. Why? I want to delete
    arow using click mouse once and press delete key. Not click mouse twice
    in arow then press delete.

    Thx

  • Ken Tucker [MVP]

    #2
    Re: Keypress event not working in datagrid

    Hi,



    Ken
    --------------------
    "Andy" <yan_q19@hotmai l.com> wrote in message
    news:1121418495 .314810.54050@o 13g2000cwo.goog legroups.com...
    Hi all,
    I'm a beginner. I have a problem. In my datagrid i have read only data
    grid. I written code to delete a row by using delete key in keydown
    event of datagrid. But this event is not always firing. I have to
    select index using mouse and when i press delete key the arrow icon
    change into a pen. And then i have to click the same row with the
    mouse and then press delete key. Now it's works. Why? I want to delete
    arow using click mouse once and press delete key. Not click mouse twice
    in arow then press delete.

    Thx


    Comment

    Working...