以文本方式查看主题
-
Foxtable(狐表)
(http://foxtable.com/bbs/index.asp)
--
专家坐堂
(http://foxtable.com/bbs/list.asp?boardid=2)
----
ListView 复选框 CheckBoxes同步
(http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=56920)
-- 作者:yifan3429
-- 发布时间:2014/9/15 14:01:00
-- ListView 复选框 CheckBoxes同步
此主题相关图片如下:qq截图20140915142658.png
如果复选框已经被选择了 设计一个按钮取消全部的选择 代码怎样写
lvw
.
CheckBoxes
=
True
只有显示属性 控制的方法是
我想设计一个按钮取消全部选择
[此贴子已经被作者于2014-9-15 14:27:58编辑过]
-- 作者:yifan3429
-- 发布时间:2014/9/15 14:33:00
--
顶下 别下去 求助
-- 作者:Bin
-- 发布时间:2014/9/15 14:37:00
--
遍历所有行,设置为False即可
For
Each
vr
As
WinForm.ListViewRow
In
lv.Rows
vr.
CheckBoxes
=
false
Next
-- 作者:yifan3429
-- 发布时间:2014/9/15 14:44:00
--
错误提示 不能用在按钮吗
此主题相关图片如下:qq截图20140915144306.png
Dim lv As WinForm.ListView = e.Form.Controls("ListView1")
For Each vr As WinForm.ListViewRow In lv.Rows
vr.CheckBoxes = False
Next
[此贴子已经被作者于2014-9-15 14:44:27编辑过]
-- 作者:Bin
-- 发布时间:2014/9/15 14:54:00
--
vr.Checked=false
-- 作者:有点甜
-- 发布时间:2014/9/15 14:56:00
--
Dim lv As WinForm.ListView = e.Form.Controls("ListView1")
For Each vr As WinForm.ListViewRow In lv.Rows
vr.Checked = False
Next