|
-
Feb 17th, 2011, 01:57 AM
#1
Thread Starter
Addicted Member
how to pass values from datagridview into textbox?
I am developing windows form application. i am a beginner.
and i m using sql server 2005, VS 2008.
i have a table customerInfoTbl which has 6 columns(customerID(primary Key), firstname, lastname,sex, age, salary)
in form1 I have a datagridview1 that shows customer information, and a button called Select.
datagridview1 has 5 columns( firstname, lastname, sex, age,salary)
i just want to select any row in the datagridview1 then click the button Select, so that i want to show the data in form2 in textboxes(txtfirstname,txtlastname,txtsex,txtage,txtsalary these textboxes are found in form2 to show data from form1 on button select click)
so can u show me how to do it? thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|