A
Anil Gupte
I am having some issues with Listboxes
Here is my code:
Dim DSContent As New DataSet
DSContent = L3GContent.GlobalDataSet
URLListBox.BeginUpdate()
For Each dr As DataRow In DSContent.Tables("ContentSites").Rows
URLListBox.Items.Add(dr("URL"))
Next
URLListBox.EndUpdate()
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,
Here is my code:
Dim DSContent As New DataSet
DSContent = L3GContent.GlobalDataSet
URLListBox.BeginUpdate()
For Each dr As DataRow In DSContent.Tables("ContentSites").Rows
URLListBox.Items.Add(dr("URL"))
Next
URLListBox.EndUpdate()
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,