Hello Guys! I am using listview. i want to search using textbox records from the database and display the searched records in listview. i read some post here with same/like mine but they're using datagrid. :|
marcmanlin2
0
Newbie Poster
Recommended Answers
Jump to PostListBox1.Items.Clear() Try con.Open() Dim da As New SqlDataAdapter("select * from student where id="+Me.TextBox1.Text, db.con) Dim ds As New DataSet da.Fill(ds, "1") For i As Integer = 0 To ds.Tables("1").Rows.Count - 1 Me.ListBox1.Items.Add(ds.Tables("1").Rows(i)(0) + " - " + ds.Tables("1").Rows(i)(1)) Next Catch ex As Exception MsgBox("Error : " + …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.