Click here to Skip to main content
15,921,530 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a gridview.on clicking a particular cell i need to take the values from gridview to textboxes in same to do that???

Use the properties of the GridView to extract the relevant item (converting to a string if necessary). Use the Text property of the TextBox to display the result.
Share this answer
you can use CellContentClick Event of DataGridView.
Hope this will help you.

private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)

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