PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Connect to BindingSource with DataMember

Reply

Connect to BindingSource with DataMember

 
Thread Tools Rate Thread
Old 26-04-2008, 07:15 PM   #1
cold80
Guest
 
Posts: n/a
Default Connect to BindingSource with DataMember


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
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off