Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I enabled selection on my datagrid

C#
AutoGenerateSelectButton="true"


What I want to achieve is when user clicks the select button, the values on that row will be displayed on the textbox. how can i do this?
Posted

1 solution

Use GridView.RowCommand Event[^] or GridView.SelectedIndexChanged Event[^]

Get the values by above event and assign it to Textbox.
Example:
Example of gridview rowcommand on Button Click [^]
 
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