Binding to variable

G

Goh

dear all,

I have learn context binding in the pass. I search the internet to find
some way for me to bind my dataset to my local variable. It also mean that
when I navigate the record the value of that variable should change
accordingly like our textbox.

Any been doing this before?

Please any advice is welcome, thanks.
 
M

Miha Markic [MVP C#]

You can't.
Why don't you just implement navigation change event instead?
 
K

Kevin Yu [MSFT]

Hi Goh,

As Miha said, you cannot bind you DataSet to some source, as DataSet itself
is a source. However, you can bind the controls (like textbox) to a
BindingSource and point the BindingSource to some other objects. Please
check the following links for more information about how to implement this.

http://msdn2.microsoft.com/en-us/library/xxxf124e.aspx
http://msdn2.microsoft.com/en-us/library/baya8sx4.aspx

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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