在GridView中绑定文本框的问题 [英] question on binding textbox in gridview

查看:69
本文介绍了在GridView中绑定文本框的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能提供有关在datagridview中绑定文本框控件的信息吗?

并从gridview检索数据

谢谢u

can u provide information about binding textbox control in datagridview

and retrieving data from gridview

thank u

推荐答案

您可以使用eval的一种方式和使用bind
的两种方式将网格中的文本框绑定
you can bind text box in grid in one way with eval and two way with bind
<asp:TextBox Text='<%# Eval("lname") %>' ....>



您可以使用
检索值



you can retrieve value using

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



如有任何疑问,请回复我

如果对我有用的话

修改了错误的PRE标签-Ankur.



any doubts reply me

if it useful vote for me

modified wrong PRE tags - Ankur.


这篇关于在GridView中绑定文本框的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆