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 initialisation

DataGridView initialisation

Scheduled Pinned Locked Moved C#
cssquestion
2 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.
  • J Offline
    J Offline
    Johnny 0
    wrote on last edited by
    #1

    I have a simple question but I tried for a long time and I cannot find the answer. I have a DataGridView object on a form binded to a DataTable and I want the first cell of the first row to be in edit mode when the form shows up. The idea is for the user to start inputting data as soon asthe form shows up without having to use the mouse. I capture CellEnter and put the grid in edit mode, this works well if you tab through the grid but it doesn't work for when the form shows.

    E 1 Reply Last reply
    0
    • J Johnny 0

      I have a simple question but I tried for a long time and I cannot find the answer. I have a DataGridView object on a form binded to a DataTable and I want the first cell of the first row to be in edit mode when the form shows up. The idea is for the user to start inputting data as soon asthe form shows up without having to use the mouse. I capture CellEnter and put the grid in edit mode, this works well if you tab through the grid but it doesn't work for when the form shows.

      E Offline
      E Offline
      Eitsop
      wrote on last edited by
      #2

      Have you tried using the .Select and .SetFocus on the Load event?

      - Eitsop What we do not understand we do not possess. - Goethe.

      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