在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.