包含复选框的列表视图 [英] List View containing checkbox
本文介绍了包含复选框的列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从事在线考试项目.
其中有多个问题,每个问题有4个选项.
为此,我采取了一个列表框来显示带有选项的问题.
对于选项,我已经选中了复选框.
那你能告诉我如何一次检查一个选项吗?
以及如何使用option检索listview数据以及如何插入到访问表中.
I am working on Online Exam project.
which have multiple question having 4 option to each question.
For this I have taken one listbox for displaying questions with options.
For options i have taken checkboxes.
Then could u please tell me how to check one option at a time .
And how to retrive listview data with option and also how to insert into access table.
推荐答案
尝试类似的方法:
Try something like:
foreach (ListViewItem item in myListView.Items)
{
CheckBox i = (CheckBox)item.FindControl("listCheckBoxField");
}
这篇关于包含复选框的列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文