【发布时间】:2012-11-26 17:39:57
【问题描述】:
我正在从指定的索引搜索我的列表视图并返回单词的第一个结果(项目所在的索引)。它工作得很好,除了我只能搜索列表视图中的第一列。如何只搜索第二列?
Private Function FindLogic(ByVal LV As ListView, ByVal CIndex As Integer, ByVal SearchFor As String) As Integer
Dim idx As Integer
Dim It = From i In LV.Items Where i.index > CIndex And i.Text = SearchFor
If It.Count > 0 Then
idx = It(0).Index
Else
idx = -1
End If
Return idx
End Function
【问题讨论】:
标签: .net vb.net string visual-studio-2010 listview