如何从ListView获取已检查列表项的索引号 [英] How to get Index number of checked List item from ListView

查看:129
本文介绍了如何从ListView获取已检查列表项的索引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用vb.net检查List项目的索引号

如何获取未选中的已检查项目的索引号我有代码获取所选项目的索引号

I want to get checked index number of List item using vb.net
How i can get index number of checked item not selected i have code for get index number of selected item that is

MsgBox(ListView1.FocusedItem.Index)



但我想索引未选中的已检查项目的编号。


But i want to index number of checked item not selected.

推荐答案

您可以使用foreach迭代所有项目,并确定从那里检查哪些项目。
You can iterate over all the items with foreach and work out which ones are checked from there.


这篇关于如何从ListView获取已检查列表项的索引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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