GridView RowDatabound事件 [英] GridView RowDatabound Event

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

问题描述

先生

我正在使用带模板的Gridview字段.我已经获取了项目模板和编辑项目模板"字段.

在编辑按钮上单击,gridview在编辑模式下打开,但是问题在于该控件的值未显示.意味着如果Im使用下拉列表,它应该显示先前的值,然后我应该更新该值.但是,当我单击编辑"时,下拉值是"--Select--",而不是先前输入的值.

如何使用带有edit命令的gridview rowdatabound来对文本框进行控制,但对于复选框,单选按钮,下拉菜单,复选框列表,单选按钮列表,则使用不正确?

请事先提供帮助

Sir

I''m using Gridview With Template fields. I have taken item template and Edit item template fields.

On edit button click gridview is opening in edit mode but the problem is that value of the control is not showing. Means if Im using drop downlist it should display previous value and then i should update that value. But when I''m clicking edit the dropdown value is "--Select--" not the previously entered value.

How to use gridview rowdatabound with edit command for textbox control its proper but for checkbox,radiobutton,dropdown,checkboxlist,radiobuttonlist its not proper How can i do this?

please help thanks in advance

推荐答案

检查此CP文章

带有文本框,复选框,单选按钮和下拉列表的可编辑Gridview [ ^ ]
Check this CP article

Editable Gridview with Textbox, CheckBox, Radio Button and DropDown List[^]


这篇关于GridView RowDatabound事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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