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. problem in Datagrid

problem in Datagrid

Scheduled Pinned Locked Moved C#
csshelpquestion
3 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

    Dear friends I have one datagrid which has data from one of the table as employee_master. on click of any record on the grid I want to get the value of first cell that is employee code. but when I clicked first time it does not give me any value. on second time click it gives me the value. How can I get the value of the cells which I need in first click only. Your quick response will be highly appreciated. Thanks Murtuza

    Mircea PuiuM 1 Reply Last reply
    0
    • L Lost User

      Dear friends I have one datagrid which has data from one of the table as employee_master. on click of any record on the grid I want to get the value of first cell that is employee code. but when I clicked first time it does not give me any value. on second time click it gives me the value. How can I get the value of the cells which I need in first click only. Your quick response will be highly appreciated. Thanks Murtuza

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      Should you work with a dataGridView, try to treat other events like CellClick or CellMouseClick

      SkyWalker

      D 1 Reply Last reply
      0
      • Mircea PuiuM Mircea Puiu

        Should you work with a dataGridView, try to treat other events like CellClick or CellMouseClick

        SkyWalker

        D Offline
        D Offline
        Drew McGhie
        wrote on last edited by
        #3

        As an expansion to this, use a DataGridView and a BindingSource. It provides superior data management capabilities. Search the CP articles for a good one on data binding and the datagridview

        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