根据gridview中radiolistbutton的值在编辑模式下更改控件 [英] change control in edit mode based on the value of radiolistbutton in gridview

查看:106
本文介绍了根据gridview中radiolistbutton的值在编辑模式下更改控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有gridview与radiolistbutton列必须值为1或0

如果它是gridview中的另一列名为aprove sholud出现在编辑模式中,如标签

如果它是一个同一列aprove应该出现在编辑模式,如文本框

我怎样才能在vb.net中创建它?

i have gridview with radiolistbutton column has to values 1 or 0
if it's one another column in gridview called aprove sholud appear in edit mode like label
if it's one the same column aprove should appear in edit mode like textbox
how can i made it in vb.net ?

推荐答案

在gridview的RowDataBound事件上处理此事件。基于RadioList的值显示你想要的控件。
Handle this on RowDataBound event of gridview. based on the value of RadioList display the control you want.


这篇关于根据gridview中radiolistbutton的值在编辑模式下更改控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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