在asp.net的gridview中的复选框列表 [英] checkboxlist with in gridview in asp.net

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

问题描述

你好,
我正在使用aspx,c#
在我的页面上,我有一个CheckBoxList控件,上面有3个项目.我想一次只设置一个项目,在gridview的每一行中都选中.请帮助我吗?

Hi there,
I am using aspx,c#
In my page I have a CheckBoxList control and I have 3 items on it. I would like to set at a time only one item as checked in every row of gridview .Could you please help me?

推荐答案

为什么不使用checkboxlist而不使用radiobuttonlist?
Instead of checkboxlist why dont you use radiobuttonlist.


反复查看radiobuttonlistid.items集合中的项目,并查看选择了哪个单选按钮.
iterate through the items in the radiobuttonlistid.items collection and see which radiobutton is selected.


这篇关于在asp.net的gridview中的复选框列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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