Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Local Report with Object DataSource: BindingList in Table?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pieter - 07 Jun 2006 12:31 GMT
Hi,

I'm using VB.NET 2005 with a Local Report, and I used an Object as
DataSource.
The problem is: this Objects contains a Generic List (MyArticles, Inherist
from BindingList), which contains other objects (Articles). I want a list of
these Articles to appear in a table in my report, but I don't know how to do
this.

In the "Data Sources"-Window I can see the MyArticles-list, with the
property's of the objects in it. But I can't drag and drop the List nor one
of the Property's to the Report or a Table in the Report.

Does anybody knows how I have to do this? Do I need to add the
Article-object as a DataSource and change some things at runtime?

Any help our hints would be really appreciated! A working sample would be
great! :-)

Thanks a lot in advance,

Pieter
Pieter - 07 Jun 2006 13:32 GMT
Well, aparently it worked...
I used just an object to bind the Articles to the Table, and than used the
List as Datasource during runtime:
Dim bs4 As New BindingSource

bs4.DataSource = CType(Me.m_Document, clsCommande).MyArticles

Dim rptSource4 As New Microsoft.Reporting.WinForms.ReportDataSource

rptSource4.Name = "MyApplication_clsArticle"

rptSource4.Value = bs4

Me.rpvwReport.LocalReport.DataSources.Add(rptSource4)

> Hi,
>
[quoted text clipped - 18 lines]
>
> Pieter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.