以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请问:如何选中ListView行  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=183910)

--  作者:9EQ98
--  发布时间:2022/11/18 15:19:00
--  请问:如何选中ListView行
    Dim 列表 As WinForm.ListView = e.Form.Controls("列表")
    For Each VR1 As WinForm.ListViewRow In 列表.Rows
        If VR1.Tag("CompanyStr") = “A01” Then
            列表.Position = VR1.Index
        End If
    Next

--  作者:有点蓝
--  发布时间:2022/11/18 15:27:00
--  
http://www.foxtable.com/webhelp/topics/2861.htm

        If VR1.Tag("CompanyStr") = “A01” Then
            VR1.Selected = True
      exit for
        End If