0

hey guys,

my simple program flows like this: a textbox where in you will input a keyword then when you press the 'go' button the data in the mysql database will be shown in the listview. im using mysql and vb .net.

i've made the table with sample records in it, the problem is i don't know how to call it to the listview

a litlle help will do.
thanks.

3
Contributors
2
Replies
6
Views
7 Years
Discussion Span
Last Post by Naveed_786
0

Well depending on your call or Read Loop.

ListViewItem temp;
            while (Your Select Loop)
            {
                temp = new ListViewItem()
                temp.Text = ColumnData1
                temp.SubItems.Add(ColumnData2)
                temp.SubItems.Add(ColumnData3)
                '.....
                '.....
                temp.SubItems.Add(ColumnData8)
                temp.SubItems.Add(ColumnData9)
                listView1.Items.Add(temp) 'your ListView
            }

you don't have to use while, use your own propagation method.

Please mark as solved if solved or ask questions.

Edited by finito: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.