Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Key Press Event in the Grid

Key Press Event in the Grid

Scheduled Pinned Locked Moved C#
csharpcssquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    how can i catch the "delete button" on key press event on DataGrid :sigh:i had catches all Keys pressed on Grid , but Only the Delete Button i Cant:sigh: :confused::confused::confused::confused::confused::confused::confused::confused: Thanks. Mohamad A. Flefel C#.net Developer

    H A 2 Replies Last reply
    0
    • L Lost User

      how can i catch the "delete button" on key press event on DataGrid :sigh:i had catches all Keys pressed on Grid , but Only the Delete Button i Cant:sigh: :confused::confused::confused::confused::confused::confused::confused::confused: Thanks. Mohamad A. Flefel C#.net Developer

      H Offline
      H Offline
      HarrySolsem
      wrote on last edited by
      #2

      Let me see If I'm getting this right. Is this the scenario You are facing: 1. The user selects the entire datagrid row by clicking on the gray field to the left on the datagrids row. 2. You want to do something else besides the automated action taking place upon delete-button pressed? If this is right take a look at the datatable datarow delete event. Hope this was helpfull Cheers Harry. HarryS - Norway Developer/Referee

      L 1 Reply Last reply
      0
      • L Lost User

        how can i catch the "delete button" on key press event on DataGrid :sigh:i had catches all Keys pressed on Grid , but Only the Delete Button i Cant:sigh: :confused::confused::confused::confused::confused::confused::confused::confused: Thanks. Mohamad A. Flefel C#.net Developer

        A Offline
        A Offline
        albCode
        wrote on last edited by
        #3

        the character of Delete kyepress is 127, like others keypressed wirte and for delete key down below is table of ASCII Characters http://web.cs.mun.ca/~michael/c/ascii-table.html

        L 1 Reply Last reply
        0
        • H HarrySolsem

          Let me see If I'm getting this right. Is this the scenario You are facing: 1. The user selects the entire datagrid row by clicking on the gray field to the left on the datagrids row. 2. You want to do something else besides the automated action taking place upon delete-button pressed? If this is right take a look at the datatable datarow delete event. Hope this was helpfull Cheers Harry. HarryS - Norway Developer/Referee

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          the datatable datarow delete event doesnt work i had catch the delete event and reject changes but it changes in the grid and the row still deleted Mohamad A. Flefel C#.net Developer

          1 Reply Last reply
          0
          • A albCode

            the character of Delete kyepress is 127, like others keypressed wirte and for delete key down below is table of ASCII Characters http://web.cs.mun.ca/~michael/c/ascii-table.html

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            i had make a keypress event on the datagrid that display a message box that show the e.keychar it show all the keys but not 'Tab' & 'Delete' Mohamad A. Flefel C#.net Developer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups