PC Review


Reply
Thread Tools Rate Thread

Connect to BindingSource with DataMember

 
 
cold80
Guest
Posts: n/a
 
      26th Apr 2008
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connect bindingSource to text object. Mr. X. Microsoft VB .NET 0 29th May 2010 01:05 PM
BindingSource: Change DataMember Assignment at Runtime? =?Utf-8?B?cmFuZHkxMjAw?= Microsoft C# .NET 1 9th Nov 2007 11:31 PM
BindingSource set DataSource and DataMember atomically? Doug Crawford Microsoft Dot NET Compact Framework 0 19th Sep 2007 07:55 PM
DataMember in WCF =?Utf-8?B?Um95?= Microsoft Dot NET Framework 0 31st May 2007 07:53 PM
WCF DataMember =?Utf-8?B?Um95?= Microsoft Dot NET Framework 0 31st May 2007 04:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.