Hi All,

I need help in passing data from a datagridview control to textboxes control. When the user select the data from datagridview and then click the command button control in form1, I want the record to be displayed in the texboxes of form2. How do I go about coding this? Any help would be highly welcome.

Thanks...

You need to capture ,user clicks on which cell.
Then capture the data in that cell.
Store in public variable.
Show the form 2 and display in a textbox.

see this sample:

see this sample:

Thankyou very much, life saver!
needed it for my school computing project!!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.