Click here to Skip to main content
16,021,998 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have three textboxes and lable
and one datagridview with three columns with data
col1:firstname
col2:midilname
col3:lastname
when click the gridviewcolumns. then data should be show in textbox how can I do the coding for this project.
i need comding also....
Posted
Updated 11-Jun-10 1:27am
v2

1 solution

raghuyash wrote:
when click the gridviewcolumns.


I believe it should be clicking Row and not column. Then only it makes sense and you can show the row values (all 3 columns got one value selected) in textboxes.

Now, since you have not told windows app or Web app, in either case, write code in RowSelect event. In that, get the selected row values and show it in textboxes.

Try! (surely it looks like an assignment, so do post your effort if you are still unable to get it.)
 
Share this answer
 

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