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. Unbound DataGridView copy to Unbound DataGridView

Unbound DataGridView copy to Unbound DataGridView

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

    Good Morning/Afternoon/Evening, I'm trying to copy the contents of an unbound DataGridView of one form into an unbound DataGridView on it's child form. I've been looking all over for a solution, but I can't figure the darn thing out. It should be a simple task, should it not? Please help!

    L 1 Reply Last reply
    0
    • L Lodeclaw

      Good Morning/Afternoon/Evening, I'm trying to copy the contents of an unbound DataGridView of one form into an unbound DataGridView on it's child form. I've been looking all over for a solution, but I can't figure the darn thing out. It should be a simple task, should it not? Please help!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Lodeclaw wrote:

      It should be a simple task, should it not?

      What should be simple? Copying the data probably is simple. Finding an example of it, probably not so simple since best practice would be to use an MVC design.

      L 1 Reply Last reply
      0
      • L led mike

        Lodeclaw wrote:

        It should be a simple task, should it not?

        What should be simple? Copying the data probably is simple. Finding an example of it, probably not so simple since best practice would be to use an MVC design.

        L Offline
        L Offline
        Lodeclaw
        wrote on last edited by
        #3

        I don't know if it's simple or not, which is why I asked. I'm hoping someone can point me in the right direction so I can figure it out. All I want is an exact copy of a datagridview in one form to appear on another form.

        L 1 Reply Last reply
        0
        • L Lodeclaw

          I don't know if it's simple or not, which is why I asked. I'm hoping someone can point me in the right direction so I can figure it out. All I want is an exact copy of a datagridview in one form to appear on another form.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Lodeclaw wrote:

          I'm hoping someone can point me in the right direction

          Well if I were planning on copying a DataGridView, I wouldn't do that but if say for some hypothetical insane reason I was planning on it, I would start at the documentation for the DataGridView class.

          L 1 Reply Last reply
          0
          • L led mike

            Lodeclaw wrote:

            I'm hoping someone can point me in the right direction

            Well if I were planning on copying a DataGridView, I wouldn't do that but if say for some hypothetical insane reason I was planning on it, I would start at the documentation for the DataGridView class.

            L Offline
            L Offline
            Lodeclaw
            wrote on last edited by
            #5

            I've looked through the documentation already. Since there's no help to be had here, I'll try a different route. Thanks anyway, Mike.

            L 1 Reply Last reply
            0
            • L Lodeclaw

              I've looked through the documentation already. Since there's no help to be had here, I'll try a different route. Thanks anyway, Mike.

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              Lodeclaw wrote:

              I've looked through the documentation already

              Did you find this?[^] I'm not saying that's a good way to go about this, however it does seem to have some possibilities doesn't it?

              L 1 Reply Last reply
              0
              • L led mike

                Lodeclaw wrote:

                I've looked through the documentation already

                Did you find this?[^] I'm not saying that's a good way to go about this, however it does seem to have some possibilities doesn't it?

                L Offline
                L Offline
                Lodeclaw
                wrote on last edited by
                #7

                I don't seen anything there that will help me in the copying process of an entire datagridview. I am filling my initial dgv in that manner. In any case, I was hoping to find an easy way to transfer the data for easy viewing on an invoice form, but since as you said there are no examples of code... I'm now using a for loop to collect the data from my rows and populate the child form's dgv. It's probably better this way in the long run. Thanks for the help, Mike.

                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