Monday, January 18, 2010

Vb.net code to search an item in the listview control ?

vb.netVb.net code to search an item in the listview control ?
Try using listViewControlName.findItemWithText(Str鈥?to search)


There are tons of examples in msdn just search for this function, it also has an option to search sub-items etc.





cheersVb.net code to search an item in the listview control ?
Try





If lstview.Items.Contains(';Your Search String';) Then


Do This


End If





That should search the items, not 100% sure though, no harm in trying.

No comments:

Post a Comment