Hi all...
I'm new in vb.net and just create a listview project . I wan to display item from database(.mdb) into listview.how to make the next item going below and not auto sorting by id?...please help me...thank in advance
Do While IBSSDR.Read()
If IBSSDR.Item("USERDEFINED10").Equals("Y") Then
ListView1.Items.Add(IBSSDR.Item("CARDHOLDERID")).ToString()
ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(IBSSDR.Item("NAME")).ToString()
If IBSSDR.Item("CARDID") Is DBNull.Value Then
ListView1.Items(ListView1.Items.Count - 1).SubItems.Add("").ToString()
Else
ListView1.Items(ListView1.Items.Count 1).SubItems.Add(IBSSDR.Item("CARDID")).ToString()
End If
End If
Loop
ibssdr.close