I am having some issues with Listboxes
Here is my code:
Dim DSContent As New DataSet
DSContent = L3GContent.Glob alDataSet
URLListBox.Begi nUpdate()
For Each dr As DataRow In DSContent.Table s("ContentSites ").Rows
URLListBox.Item s.Add(dr("URL") )
Next
URLListBox.EndU pdate()
This populates the listbox and displays the URL as items. However, how do I
put in ValueMembers versus DisplayMembers separately? I tried using
Databindings, but I need more control than what it can offer (for example
adding additional items not in the dataset). Any help is appreciated.
Thanx,
--
Anil Gupte
www.icinema.com
Here is my code:
Dim DSContent As New DataSet
DSContent = L3GContent.Glob alDataSet
URLListBox.Begi nUpdate()
For Each dr As DataRow In DSContent.Table s("ContentSites ").Rows
URLListBox.Item s.Add(dr("URL") )
Next
URLListBox.EndU pdate()
This populates the listbox and displays the URL as items. However, how do I
put in ValueMembers versus DisplayMembers separately? I tried using
Databindings, but I need more control than what it can offer (for example
adding additional items not in the dataset). Any help is appreciated.
Thanx,
--
Anil Gupte
www.icinema.com