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