Connect to BindingSource with DataMember

C

cold80

I've tried to set a BindingSource DataSource property to a DataSet
with many tables. Now I try to connect two DataGridView to the same
BindingSource, but using two different DataMember (one with the name
of one table and the other with another). Everything is working, the
two DataGridView controls are rendering well. Everyone has its own
cursor, I can change the data and all. The problem is that if I want
to use the properties and methods of the BindingSource object I can't
specify which table I'm referring to...
For example, if I write

bs.Position++;

which cursor table is going to move? No one actually, as I have
already tried...But why can't I specify the which table I want to
manage from the BindingSource if the BindingSource is actually capable
of working with multipled set of data? Am I supposed to use a single
BindingSource object for each table of the database?

Thank you for your help

cold
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top