Play Values from one Datagridview to another Datagridview

Asked

Viewed 212 times

0

Good evening guys, I’m having a problem. I have a datagridview that is connected to the bank. I Fis a filter on this normal grid. Now I want to take the filtered values of this grid and play in another grid Normal, created in the hand without connection with bank. Summarizing I want to transport the values of a grid to another grid.

Help me.

  • You made some code?

  • no, because I have no idea how.

  • I thought to use one for catching the logging Qtd of the filtered grid and in each position of the is popular to msm line on the other grid.

  • You said you made the filter on the first and everything right? Correct?

  • correct, the filter in the first worked, now all that remains is to take the data left in the filter, and play in another grid

  • Look just equals one on the other guy dataGridView2.DataSource = dataGridView1.DataSource have tried...!

  • Soon it worked out... Much easier for those who have no experience and do not know the code is a little difficult rsrs. Very obligatedVirgilio helped me a lot.

Show 2 more comments

1 answer

0

Correct code:

dataGridView2.DataSource = dataGridView1.DataSource 
  • That was the solution to your problem ?

  • It was Yes, simple but I didn’t know rsrs!

  • mark as answer to finalize question

Browser other questions tagged

You are not signed in. Login or sign up in order to post.