Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can u provide information about binding textbox control in datagridview

and retrieving data from gridview

thank u
Posted
Comments
Sandeep Mewara 28-May-11 5:58am    
Elaborate.

1 solution

you can bind text box in grid in one way with eval and two way with bind
XML
<asp:TextBox Text='<%# Eval("lname") %>' ....>


you can retrieve value using

C#
TextBox LastName = (TextBox)row.FindControl("lname");


any doubts reply me

if it useful vote for me

Edit: modified wrong PRE tags - Ankur.
 
Share this answer
 
v3

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