Click here to Skip to main content
14,865,252 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?
Updated 19-Mar-10 4:47am

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900