none
Multiple tableadapter queries RRS feed

  • Question

  • Hi,

    I am using a dataset ("DS_TNWarning") in my WPF application, which contains several data tables. In one of these data tables I have a table adapter ("Sem_comp_bookingsTableAdapter") and multiple queries, one of which has the name "FillBy_Bookings". in the application I use the following code to fill my datagrid ("DG_Daten") with the data from that query:

    Dim bookings_ds As New DS_TNWarning
    Dim bookings_ta As New DS_TNWarningTableAdapters.Sem_comp_bookingsTableAdapter
    bookings_ta.FillBy_Bookings(bookings_ds.Tables("Sem_comp_bookings"))
    DG_Daten.DataContext = bookings_ds.Sem_comp_bookings

    The data displayed in the datagrid though is that from the whole dataset. Where am I going wrong?

    Thanks in advance for your help!

    • Moved by Sheldon _Xiao Tuesday, November 6, 2012 5:43 AM (From:Windows Presentation Foundation (WPF))
    Friday, November 2, 2012 7:24 AM

Answers

  • Thanks for your suggestion. I have switched to using DataSets for filling my Datagrid, as it gives me the most flexibility.
    Friday, November 9, 2012 9:49 AM

All replies