It depends on the values present in the
ListView
.
I will considered that your
ListView
contains Integer Values.
See below code example :
ListView1.MultiSelect = False
ListView1.Items(0).Selected = True
Dim _mItemMinValue As Integer = ListView1.Items(0).Text
For Each _mItem As ListViewItem In ListView1.Items
If _mItemMinValue > Val(_mItem.Text) Then
_mItem.Selected = True
End If
Next
This code automatically select
ListViewItem
with Lowest Integer value present in the
ListView
.
I hope this will help you. :)