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 / Windows Forms / WinForm Data Binding / October 2006

Tip: Looking for answers? Try searching our database.

Binding a DataSet with multiple takes to a BindingNavigator

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mordock32@hotmail.com - 25 Oct 2006 22:43 GMT
I have a DataSet, let's say with two tables: one for jobs, one for
employees. I want to do something like this:

BindingSource bs = new BindingSource();

bs.DataSource = ds;
nav.BindingSource = bs;

However, when I try to do that, I get 1 of 1 records when there are
around 300 records in the job table and 600 in the employee table. How
can I specify which table the BindingNavigator should use when the data
set has more than one? If I just use a DataTable, all is well, but even
if the data set only has one table, I have the same problem.

Thanks!
Bart Mermuys - 26 Oct 2006 21:24 GMT
Hi,

>I have a DataSet, let's say with two tables: one for jobs, one for
> employees. I want to do something like this:
[quoted text clipped - 9 lines]
> set has more than one? If I just use a DataTable, all is well, but even
> if the data set only has one table, I have the same problem.

Set bs.DataMember to the tablename.

HTH,
Greetings

> Thanks!

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.