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. Handle pressing Enter or Tab key in DataGridTextBox

Handle pressing Enter or Tab key in DataGridTextBox

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hello, I want to handle pressing Enter or Tab key in the DataGridTextBox of the DataGrid. Are there any way to do this? Thanks.

    D 1 Reply Last reply
    0
    • A Anonymous

      Hello, I want to handle pressing Enter or Tab key in the DataGridTextBox of the DataGrid. Are there any way to do this? Thanks.

      D Offline
      D Offline
      DougW48
      wrote on last edited by
      #2

      Create a new class that inherits the datagridtextboxcolumn class. In this inherited class, you will have access to the textbox and can handle any events. Good luck

      A 1 Reply Last reply
      0
      • D DougW48

        Create a new class that inherits the datagridtextboxcolumn class. In this inherited class, you will have access to the textbox and can handle any events. Good luck

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

        I tried to handle the KeyDown event of the DataGridTextBoxColumn.TextBox but the Enter and Tab key can not be handled.

        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