How to transfer one DataGrid data to another DataGrid in VB.NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
John ArcadellaRank #1,064 · 1.8K reputationPosted Feb 23, 2011, 5:59 AM EST
If you want to transfer one row or selected rows, then you need to get SelectedRows from DataGrid and Import them into second DataGrid by inserting them in to the DataSource (DataSet or DataTable) or second DataGrid.
Mayur DigheRank #1,078 · 1.8K reputationPosted Feb 26, 2011, 6:39 AM EST
DataGridView2.DataSource=DataGridView1.DataSource
NOTE:
If this works, PLZ make this as ANSWER