Reading from multiple tables in a dataset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with 7 datagrids, each on a seperate tabpage and reading from
it's own dataTable. I would like to take the first three fields of each row
and show them in a listbox (for example, ID, first name and last name). I
know how to join them to create a single string and how to add them to the
listbox items collection, but is there an easy way of reading every single
row in my dataset, rather than reading each table one at a time? I seem to
have to use the same code 7 times just to add, delete, update or query the
data I.E query the Manager table, then the Cashier table, then the next, etc.
 
I was alreayd asking myself what language you where using

However probably you are looking for the the binding and the
currencymanager.

http://msdn.microsoft.com/library/d.../frlrfsystemwindowsformsbindingclasstopic.asp

http://msdn.microsoft.com/library/d...stemwindowsformscurrencymanagerclasstopic.asp

This is probably the right start, however next time I advise you when it
becomes probably more language related I advice you to ask it in the
newsgroup.

microsoft.public.dotnet.languages.csharp

I hope this helps so far,

Cor
 
Back
Top