PC Review


Reply
Thread Tools Rate Thread

Binding source data source

 
 
John
Guest
Posts: n/a
 
      26th Feb 2010
Hi

I have a winform with form controls bound to a binding source. How can I;

1. Use a dynamically created sql to retrieve data from the backend table
and use it as data source for binding source?

2. Save the data back to the backend table when data is changed in the form
controls and user presses Save on binding navigator?

Many Thanks

Regards


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      26th Feb 2010
John,

The bindingsource is working dynamically.

The mistake most often is made, when there are questions like yours, is that
persons set a New object to the source of the bindingsource, the source of
the bindingsource stays then the same.

If you fill the object of the bindingssource (a list, a dataview, a
datatable or whatever), then the data in that will be used.

How to do the retrieval and updating of your database data is 100% depending
from the Database methods you are using and the kind of database, that is
not more one method like in the days of VB6, but impossible to tell,
because those can be used mixed as well.

Success

Cor


"John" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi
>
> I have a winform with form controls bound to a binding source. How can I;
>
> 1. Use a dynamically created sql to retrieve data from the backend table
> and use it as data source for binding source?
>
> 2. Save the data back to the backend table when data is changed in the
> form controls and user presses Save on binding navigator?
>
> Many Thanks
>
> Regards
>

 
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
Binding source data source John Microsoft VB .NET 1 26th Feb 2010 09:11 AM
binding and crud xml data source in asp.net J Ames Microsoft ASP .NET 1 9th Apr 2006 01:24 AM
binding and crud xml data source in asp.net J Ames Microsoft VB .NET 0 8th Apr 2006 10:08 PM
Data Source Binding CJ Taylor Microsoft VB .NET 8 20th Sep 2004 05:50 PM
When does a binding update its data source alton.goerby@freenet.de Microsoft C# .NET 1 30th Nov 2003 10:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 AM.