Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to add a typed TableAdapter object to a form

Posted on 2007-10-17
Medium Priority
Last Modified: 2013-12-17
If you run the Add New Data Source Wizard in a C# project to create a new DataSet object in your project, you can then drag that object to a form and automatically a typed DataSet, TableAdapter, BindingSource, and BindingNavigator objects will appear on the form as visual objects on the lower part of the design window.

However, if you add a DataSet and TableAdapter objects manually from a C# DLL into your project, and you drag and drop that DataSet onto a form, all the same objects are created with the exception of the typed TableAdapter object. Unfortunatelly that object does not even appear as an object in the toolbox as the other objects created. Why is that? How can I get the typed TableAdapter to be inserted automatically, or at least appear on the toolbox.
Question by:adrian_z80
  • 2
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 20096281
If I say that it is because there were different Microsoft developers working on the different wizards, and that is the way that it goes, that probably wouldn't satisfy your curiousity, would it?


Author Comment

ID: 20097113
lol, sorry, but no.

What makes it so confusing for me is that under certain circumstances there actually appears a control in the toolbox named, for example, employeeTableAdapter, which you can just drag and drop on the form. That makes the typed TableAdapter part of the EmployeeForm.Designer.cs file. The problem is I don't know what those "certain circumstances". But I've been trying everything I can thing of to see if I can get the typed TableAdapter control to appear but I've had no success yet.
LVL 96

Accepted Solution

Bob Learned earned 1500 total points
ID: 20101367
If you don't get a TableAdapter on the designer, you can still access the control in the code module.  I am not sure of what circumstances where this works, unless you are talking about the differences between two distinct operations.


Author Comment

ID: 20109692
Then it seems this is one of those "you can't do that" type of questions...


Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Screencast - Getting to Know the Pipeline
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question