Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 5 tables I am working with, and I have created a binding source that uses the main table as the data used for binding. However, I am wanting to bind to all tables and be able to update them. any suggestions on how to do this? Possibly any articles that are specific to using multiple tables with a binding source?

What I have tried:

Originally, I was going to make a join statement that combined all data and then use that as the binding source data. This will work for displaying data, but this will not update the tables that are used in the join.
Posted
Updated 3-Sep-18 22:15pm
Comments
Graeme_Grant 3-Sep-18 23:21pm    
We cannot see your screen from here... WPF, WinForm, Xamrin Forms, etc... which framework are you using? Post code so that we can see what you are doing and offer advice on how to help.

1 solution

Based on your description, i'd suggest to use a DataSet[^], which "represents a complete set of data including the tables that contain, order, and constrain the data, as well as the relationships between the tables".
 
Share this answer
 
Comments
Graeme_Grant 4-Sep-18 4:53am    
Are you assuming a WinForm project?
Maciej Los 4-Sep-18 6:04am    
Why do you think so?
Graeme_Grant 4-Sep-18 6:46am    
DataSet is not used for the other frameworks
Maciej Los 5-Sep-18 2:56am    
What about ASP.NET?
Graeme_Grant 5-Sep-18 4:04am    
lol... true

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900