如何通过检查RadioButtonList的项目来刷新GridView. [英] How to Refresh GridView By checking the item of RadioButtonList .

查看:64
本文介绍了如何通过检查RadioButtonList的项目来刷新GridView.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.
我补充说,我有一个gridviwe:
单选按钮列表
和按钮.

我希望最初button.visible为false,即当从单选按钮"列表中选择任何项时,最初的按钮会隐藏并显示.
然后出现Button,然后用户点击按钮,按钮动作便发生.

我想要刷新代码,以便使按钮显示在选择项目窗体RadioButtonlist上以及在其中创建该按钮操作(命中)逻辑的位置.

Hello.
I have a gridviwe in whic i adds :
radiobuttonlist
and Button.

i want initially button.visible is false i.e. initially button get hidden and get displayed when any item is selected from the Above radio Button list.
and then Button will appear and then user hit the button and button action takesplace.

i want a refresh code so that button get displayed on selecting item form RadioButtonlist and where i creat that button action(Hit) logic.

推荐答案

1.)设置按钮在设计视图中可见的错误.
2.)假设您使用的是Visual Studio,请双击单选按钮"列表,这将创建一个"SelectedIndexChanged"事件.
3.)添加代码:

1.) Set your buttons visibility to false in design view.
2.) Assuming you''re using Visual Studio, Double-click your Radio Button list, and it will create an "SelectedIndexChanged" event.
3.) Add the code:

yourButtonNameHere.Visible = true;



参加活动.

祝你好运:)



to the event.

Good luck :)


这篇关于如何通过检查RadioButtonList的项目来刷新GridView.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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