Having trouble populating listboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anil Gupte

    #1

    Having trouble populating listboxes

    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
    Innovate with UsLeading the Way in Advanced Technology Solutions Discover state-of-the-art services in logistics, databases, and AI designed for evolving

    www.icinema.com


Working...