Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added the data into the gridview by using text boxes and drop down list and now i want to select a row from the gridview and show its data into its represetative text boxes and drop downlist i used so how can i do it?
so please tell me its solution....
Posted
Updated 13-Jun-12 19:25pm
v2

1 solution

textbox1.text=Datagridview1.currentrow.cell("YourColumnName1").value
textbox2.text=Datagridview1.currentrow.cell("YourCOlumnName2").value
Combobox1.text=Datagridview1.currentrow.cell("YourCOlumnName").value

Try this code.
 
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