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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Button click in sub-dialog copy data onto main dialog

Button click in sub-dialog copy data onto main dialog

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

    Hey guys, I'd posted this question as a message in a thread that's been nudged down to page two, so not sure if anybody would read it. So I'll just re-ask here. I have a sub-dialog in which I have a datagridview that i can search through, select a row, and click load. When clicking load, the data from that selected row is saved as a public static string in a class, so i can use it in my main dialog. The problem I am having is that I can't figure out how to automatically populate the fields of the main dialog on the click of the load button in the sub-dialog. Any help greatly appreciated. Martin

    M H 2 Replies Last reply
    0
    • M Martin31088

      Hey guys, I'd posted this question as a message in a thread that's been nudged down to page two, so not sure if anybody would read it. So I'll just re-ask here. I have a sub-dialog in which I have a datagridview that i can search through, select a row, and click load. When clicking load, the data from that selected row is saved as a public static string in a class, so i can use it in my main dialog. The problem I am having is that I can't figure out how to automatically populate the fields of the main dialog on the click of the load button in the sub-dialog. Any help greatly appreciated. Martin

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      try searching for the information google is your friend[^]

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • M Martin31088

        Hey guys, I'd posted this question as a message in a thread that's been nudged down to page two, so not sure if anybody would read it. So I'll just re-ask here. I have a sub-dialog in which I have a datagridview that i can search through, select a row, and click load. When clicking load, the data from that selected row is saved as a public static string in a class, so i can use it in my main dialog. The problem I am having is that I can't figure out how to automatically populate the fields of the main dialog on the click of the load button in the sub-dialog. Any help greatly appreciated. Martin

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        Martin!!!! This is very rude, behaviour. You have to remember Time differences, also people here are busy doing their own work, they are not just sitting here waiting for you to post a question. If you want instant answers you have to Pay.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        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