Gridview
how to pass multiple row value from gridview from 1 form to another from in c#.(desktop application)
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
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 14, 2012, 8:19 AM EDT
Please refer the below link
http://www.dotnetcurry.com/ShowArticle.aspx?ID=147
Thanks
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 14, 2012, 9:39 AM EDT
now loop thorugh datatable and make a list of all required rows, Call it LISTX
Now Create Form2 create Property called MyList;
in Form 1
Form2 f=new Form2();
f.MyLisy=ListX;
f.showDialog();
Check this is correct answer if it helped.
vikas kanani147 reputationPosted Sep 15, 2012, 12:30 AM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 15, 2012, 7:11 AM EDT
Hope it helped you , if yes check answer as correct answer.
vikas kanani147 reputationPosted Sep 15, 2012, 9:25 AM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 15, 2012, 9:57 AM EDT
Like
take a perticular column and put it in a textbox.
Check this is correct answer if it helped..
bagzli36 reputationPosted Sep 15, 2012, 11:15 AM EDT
so....
for(int i=0; i
//copy data - also it is either.size or .length, I don't have my editor near hand to check that.
}
Well this is how I would go about it, not sure if it is the best way.
Hope this helps.
Regards,