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. Visual Studio
  4. I have a form with a gridview. When clicking one row I want it to pass the data to a second form that already exist.

I have a form with a gridview. When clicking one row I want it to pass the data to a second form that already exist.

Scheduled Pinned Locked Moved Visual Studio
question
4 Posts 2 Posters 5 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.
  • P Offline
    P Offline
    Paul Hacker
    wrote on last edited by
    #1

    That is, I don't want to instantiate a second form (or third or forth..) when I click a new row. I want the form already there, say form2, to show the data row from form1. form1 has the gridview. Click one line and the textboxes on form 2 populate with the new row selected. Is this possible? Thanks!

    L 1 Reply Last reply
    0
    • P Paul Hacker

      That is, I don't want to instantiate a second form (or third or forth..) when I click a new row. I want the form already there, say form2, to show the data row from form1. form1 has the gridview. Click one line and the textboxes on form 2 populate with the new row selected. Is this possible? Thanks!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Paul Hacker wrote:

      Is this possible?

      Yes, but what has this to do with Visual Studio?

      P 1 Reply Last reply
      0
      • L Lost User

        Paul Hacker wrote:

        Is this possible?

        Yes, but what has this to do with Visual Studio?

        P Offline
        P Offline
        Paul Hacker
        wrote on last edited by
        #3

        I'm using VS 2013 to create these webforms. I use a child form that pops up. It's the child form I want to pass changing information to as it changes. That way the user, if they decide to click another row on the datagridform, will pass the new information to the child from already up.

        L 1 Reply Last reply
        0
        • P Paul Hacker

          I'm using VS 2013 to create these webforms. I use a child form that pops up. It's the child form I want to pass changing information to as it changes. That way the user, if they decide to click another row on the datagridform, will pass the new information to the child from already up.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          If this is a question about webforms then you probably need the ASP.NET forum.

          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