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.

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.

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.