By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 2,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

Forcing a Databinding to update

P: n/a
Hi.

I have a Class named Echo. That contains a private attribute Data, which
is a dataset that contains a single table (T_Echo) that can have
multiple records. I then have public properties, one for each field that
they are allowed to access, from which callers can access the underling
data. I have then create a windows form with several text controls and
bound these to the Echo Class. All work well at first.

However, because the table contains multiple records, I have to give the
user the ability to scroll through these. At first I thought of using
the binding context but as the binding occurs to properties of the class
this did not work. So I added a CurrentRecordID to the class that the
caller can change to access different records. This seems ok but when
the user increments the count (moves to the next record) the data in the
controls does not get refreshed. If I change tabs and then return to the
Echo tab bingo we have the correct data?

Does anybody know of a way to force controls to update their data
bindings? Or am I going about this the wrong way and should be able to
use the Binding context to navigate the records?

Thanks

Darran
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.