Hey Guys, Thanks for the input.
I like what you added sfx, my next question was going to be how do I get two columns from my data set into the same list box. Now working with what you have given I have new questions.
First, what is the difference between a listview and a listbox?
I tried using what you had in your last reply sfx for my list with confusing reults. This is what I have:
[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] lvwItem [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] ListViewItem
[/SIZE][SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] i [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To[/COLOR][/SIZE][SIZE=2] dsTest.Tables("test").Rows.Count - 1
lvwItem = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] ListViewItem
lvwItem.Text = dsTest.Tables("test").Rows(i).Item("name").ToString
lvwItem.SubItems.Add(dsTest.Tables("test").Rows(i).Item("title").ToString)
ListView1.Items.Add(lvwItem)
[/SIZE][SIZE=2][COLOR=#0000ff]Next[/COLOR][/SIZE][SIZE=2] i[/SIZE]
Pretty much the same as what you had. When I do this my list view looks very odd. Instead of listing all the items top to bottom, my list view is listing items left to right. Is this how a list view behaves?
So I tried the same code above but put it into a list box. I made only one change. Instead of ListView1.Items.Add(lvwItem), I have lstBox1.Items.Add(lvwItem). With this my list box populates like the following:
ListViewItem: {Dave, Mr.}
ListViewItem: {Sue, Miss.} and so on
I am pretty new to this .Net stuff so I am sure that I am missing something simple.
Thanks for all the help guys