Selected

返回或设置ListViewRow是否选中。

示例

Dim lvw As WinForm.ListView = e.Form.Controls("ListView1")
Dim
nms() As String = {"张飞","吕布","赵云"}
For
i As Integer = 0 To nms.Length - 1
   
Dim vr As WinForm.ListViewRow = lvw.Rows.Add()
    vr.Text = nms(i)
    vr.Name = nms(i)

Next
lvw.Rows(
1).Selected = True '选中第二行


本页地址:http://www.foxtable.com/webhelp/topics/2861.htm