Click here to Skip to main content
15,887,862 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how get cell from grid view vb2010 and show on edit textbox
Posted
Comments
Ralf Meier 29-Jul-15 5:17am    
What have you tried until now ?
Where are you stucking ?

1 solution

You can do like this

VB
Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
       TextBox1.Text = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString()
   End Sub
 
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