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. DataGridView

DataGridView

Scheduled Pinned Locked Moved C#
help
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
    aranhamarvel
    wrote on last edited by
    #1

    Hi! i have a problem! i have a datagrid and when the focu is on it and click on enter, the focu pass to the next row. How i do to take off it! I'd like to disable it to not pass to the next row. help me!! Thanks :)

    K 1 Reply Last reply
    0
    • A aranhamarvel

      Hi! i have a problem! i have a datagrid and when the focu is on it and click on enter, the focu pass to the next row. How i do to take off it! I'd like to disable it to not pass to the next row. help me!! Thanks :)

      K Offline
      K Offline
      KaineDunno
      wrote on last edited by
      #2

      Hi, You could code the following private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) e.Handled = true; } Hopes this helps... Greetings Kaine

      A 1 Reply Last reply
      0
      • K KaineDunno

        Hi, You could code the following private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) e.Handled = true; } Hopes this helps... Greetings Kaine

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

        Thanks for help me! this code was great, it helped a lot. if (e.KeyCode == Keys.Enter) e.Handled = true; Thanks again!! :-D

        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