Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if i select a row in grid view with enter key i got the value of next row(display in texbox).
How to get the value of selected row display in a textbox?
Posted
Updated 19-Mar-10 4:47am
v2

1 solution

Please supply some sample code (in pre tags) so that we can see what you are trying to do..

I assume this doesn't work?

Dim r as DataRow = dgv.SelectedRows(0)
txtMyText.Text = r.Cells("ColumnName").Value.ToString
 
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