Click here to Skip to main content
15,922,419 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a data grid view with checkbox column as the 1st column. What we want is when user checked rows, all the checked rows should goes to textboxes in another Form. I wrote followings to do that.

What I have tried:

C#
private void btngnvoucher_Click(object sender, EventArgs e)
{

}
Posted
Updated 28-Aug-20 0:15am
v2
Comments
BillWoodruff 31-Aug-20 0:47am    
You are asking us to do your research, and write your code.

If we do that, you will learn nothing !

1 solution

Break it into two:
1. extract all the checked rows from form A
2. transfer the data from formA to formB

Try out and see.

BTW, you say gridview but have not tagged to ASP.NET.
 
Share this answer
 
v2
Comments
Member 14919875 28-Aug-20 7:13am    
Ado.net
Sandeep Mewara 28-Aug-20 7:35am    
I meant winforms (windows app) or asp.net (web app) :)
Member 14919875 28-Aug-20 9:02am    
ado.net (client server) soo (windows application)
and tnx u again for you're time
BillWoodruff 31-Aug-20 0:47am    
Sandeep-ji, Is this kind of very general response to an OP that has tried nothing really worthy of "solution" status ? I don't think so; I do think what you say here is valuable, but should occur in comments to the OP.

So, I have flagged this as not a solution.
Sandeep Mewara 31-Aug-20 1:16am    
Thanks for the comment and sharing.

Sure. I do try to keep answer and comments separate. Sometimes they cross paths and it's totally okay to flag or downvote as you/others do.
BTW, this was reposted by OP.

One curious Q, I recall we used to have good discussion in past (5+ years back). Don't know you remember. Is that the reason you try to share/tell me now or you do it with everyone?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900