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 / January 2007

Tip: Looking for answers? Try searching our database.

Databinding multiple datagridview's on a single form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Real_Foggy - 20 Jan 2007 06:02 GMT
Hello All,

Just starting out with VB2005 using SQL2005 Express, I hope that someone may
be able to help me, I have created a windows application and have created a
connection to the sql database (Northwind) and added the required tables to
the data sources using the wizard, I have dragged the 'Customers table' (as
Details) onto the form as well as the 'Orders' and 'Order Details' Tables
(as Datagridview's) onto the same form, I have then added an additional
binding navigator (datasource set to FKOrdersCustomersBindingSource). I have
set the datasource for the Orders Datagridview to the
FKOrdersCustomersBindingSource and the Order Details Datagridview to
FKOrderDetailsOrdersBindingSource. My problem is that although the two
binding navigators work as expected the Order Details Datagridview fails to
display the correct data almost as though it isn't bound to anything, I know
that I must be overlooking something but I can't work it out.

Is there someone who would be able to point me in the right direction ?

Thanks

Dave.
Real_Foggy - 22 Jan 2007 07:08 GMT
Doh....

       Just realised where I went wrong, after re-reading the book for the
umpteenth time, I should have dragged the tables from the same node.

Thanks & regards

Dave.

> Hello All,
>
[quoted text clipped - 19 lines]
>
> Dave.

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.