How to add a typed TableAdapter object to a form

Posted on 2007-10-17
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
    LVL 96

    Expert Comment

    by:Bob Learned
    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

    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

    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

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    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 …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now