|
-
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
-
Feb 17th, 2011, 06:09 PM
#2
Re: how to pass values from datagridview into textbox?
Follow the CodeBank link in my signature and check out the thread on Updating Grid Row in Dialogue.
-
Feb 17th, 2011, 09:23 PM
#3
Fanatic Member
Re: how to pass values from datagridview into textbox?
 Originally Posted by jmcilhinney
Follow the CodeBank link in my signature and check out the thread on Updating Grid Row in Dialogue.
hi jmcilhinney, i dint find the code bank link? please assist me where do i find?
-
Feb 17th, 2011, 09:32 PM
#4
Re: how to pass values from datagridview into textbox?
My "signature" is the boilerplate text underneath all my posts. It doesn't contain all that many links and even fewer of them use the word "CodeBank".
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
|