Thanks, Nicholas. I am not sure what you are saying. Let me try to
describe my scenario in more detail.
User open my windows app. There are three bound controls to the table
called tciBatchLog. BatchKey, DealNum and InvNum are the three bound
columns. The data at that time is 123, 25 and 1 perspectively.
Five minutes later, the timer tick event happens. I would like to
instruct the bound controls to report the new data. The new data would
be 123, 25 and 20 perspectively.
The data in tciBatchLog is being changed by an external process. All
this app is doing is looking at the data and reporting it. It's kind of
like checking your stocks periodically during the day.
So my question is, how do I instruct the bound controls to refresh with
the new data values?
Thanks again! I appreciate the help.
Bryan Shaw
bs***@amerexenergy.com
Nicholas Paldino [.NET/C# MVP] wrote:
Bryan,
The BindingSource can't trigger another fetch. What you have to do is
set the DataSource property to a new version of the table. However, this
will most likely cause the current position and whatnot to change.
You are better off updating the bound table with the changes from the
database (by cycling through the table and adding/deleting/editing the
records where appropriate).
Hope this helps.