Home All Groups Group Topic Archive Search About

Listbox DataSource Design binding problem

Author
5 Feb 2006 7:02 PM
ramses1
I can't see my table row members in the listbox?

I made the oledbconnection, oleDBDataAdapter and defined a DataSet:

     Me.ListBoxLibraries.DataSource =
Me.LibraryConnectionsDataSet1.LibraryConnectionsTable
     Me.ListBoxLibraries.DisplayMember = "Database"
     Me.ListBoxLibraries.Location = New System.Drawing.Point(16, 16)
     Me.ListBoxLibraries.Name = "ListBoxLibraries"
     Me.ListBoxLibraries.Size = New System.Drawing.Size(144, 199)
     Me.ListBoxLibraries.Sorted = True
     Me.ListBoxLibraries.TabIndex = 0

Then I have the dataset defined later:

     Me.LibraryConnectionsDataSet1.DataSetName =
"LibraryConnectionsDataSet"
     Me.LibraryConnectionsDataSet1.Locale = New
System.Globalization.CultureInfo("en-US")

This code is within the Windows form  designer generated code.

But when i run the application nothing appears in the listbox at all!
What am I missing?

ramses.

Author
6 Feb 2006 12:10 PM
Ken Tucker [MVP]
Hi,

        The dataset is not automatically filled in vs.net 2003 and vs.net
2002.  My guess there is no data to show.

Ken
----------------
Show quoteHide quote
"ramses1" <hashemga***@gmail.com> wrote in message
news:1139166152.129432.137380@g44g2000cwa.googlegroups.com...
>I can't see my table row members in the listbox?
>
> I made the oledbconnection, oleDBDataAdapter and defined a DataSet:
>
>     Me.ListBoxLibraries.DataSource =
> Me.LibraryConnectionsDataSet1.LibraryConnectionsTable
>     Me.ListBoxLibraries.DisplayMember = "Database"
>     Me.ListBoxLibraries.Location = New System.Drawing.Point(16, 16)
>     Me.ListBoxLibraries.Name = "ListBoxLibraries"
>     Me.ListBoxLibraries.Size = New System.Drawing.Size(144, 199)
>     Me.ListBoxLibraries.Sorted = True
>     Me.ListBoxLibraries.TabIndex = 0
>
> Then I have the dataset defined later:
>
>     Me.LibraryConnectionsDataSet1.DataSetName =
> "LibraryConnectionsDataSet"
>     Me.LibraryConnectionsDataSet1.Locale = New
> System.Globalization.CultureInfo("en-US")
>
> This code is within the Windows form  designer generated code.
>
> But when i run the application nothing appears in the listbox at all!
> What am I missing?
>
> ramses.
>