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. Pass Data From Data Grid in Form To Text Box in The Other Form

Pass Data From Data Grid in Form To Text Box in The Other Form

Scheduled Pinned Locked Moved C#
questioncss
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.
  • S Offline
    S Offline
    shahramkeyboard
    wrote on last edited by
    #1

    How can i pass Data from data grid to text box while the record in the data grid is highlighted. TEXT BOX in Form1 & DataGrid in Form2 How Can?

    D D 2 Replies Last reply
    0
    • S shahramkeyboard

      How can i pass Data from data grid to text box while the record in the data grid is highlighted. TEXT BOX in Form1 & DataGrid in Form2 How Can?

      D Offline
      D Offline
      Dan Mos
      wrote on last edited by
      #2

      So what exactly is the problem? Getting the highlighted cell text or passing it to the other form? If problem is passing then use a delegate or (and I really don't recomend this one) a simple static method in the form1 that sets the text of thexbox 1. The delegate is the way I would go.

      1 Reply Last reply
      0
      • S shahramkeyboard

        How can i pass Data from data grid to text box while the record in the data grid is highlighted. TEXT BOX in Form1 & DataGrid in Form2 How Can?

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        This[^] will give you the basic idea

        Dave

        If this helped, please vote & accept answer!

        Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

        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