none
Using a TableAdapters fill method? RRS feed

  • Question

  • Hello!

    I have several tables designed in Visual Studio (.xsd file). I have added several queries to them. Now, when I add a DataGridView and click "Preview Data" then I can select with which query I get my data. But I want this to be done in the application itself.

     

    How can I choose which query gets executed?

    Monday, November 22, 2010 12:03 PM

Answers

  • hi,

    after you designed your table and added some query for tableAdapter related to current table, you have to once build your project(Menu: Build->Build Solution)

    then open your  From (double click on your form on "solution explorer windows"-> then open "Data Sources window" ( Menu: Data->Show Data Sources) .

    then on "Data Sources window" you can see your Data Set Content, here

    Click on one table and drag and drop data table on your form.

     

    then run your application.

    but i recommit your for more flexibility visit :

    Leave DataSet Designer


    .Net adventurer

    don't say "my god i have a big problem", always say "hey problem i have a big god."

    • Marked as answer by liurong luo Tuesday, November 30, 2010 7:59 AM
    Monday, November 22, 2010 3:51 PM