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 General / April 2005

Tip: Looking for answers? Try searching our database.

Viewing DataAdapter in Dataset at design time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 26 Apr 2005 21:43 GMT
Hello,

I have a simple DataGrid displaying data in my DataSet, which is loaded in
two DataAdapters.

It works fine where I fill the DataSet using the DataAdapters.  It displays
the data, can be updated, etc.

Now here's the question.

I have a simple PK/FK relation between the tables, and I was hoping to use
the design tools to easily create this relation.

In design time, I apparently need to manually define the tables in the
tables collection and create the relation in the relations collection.  Is
there an easier way to load the DataAdapter definitions into the dataset
during design time, so I can easily create the PK/FK constraint?

Also, what is the easiest way to create a dropdown list in the datagrid for
the FK table?

Thanks,

eric
Eric - 27 Apr 2005 14:46 GMT
NEWBIE

I figured it out.  I right-clicked on the Data Adapter and selected
"Generate Dataset."

Then on the generated dataset, I right-clicked and chose View Schema, and
created the PK/FK relation.

Eric

> Hello,
>
[quoted text clipped - 20 lines]
>
> eric

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.