J
JohnR
I have multiple controls set to the same database and, normally, when I
change the record in one control the position is also changed in the other
controls because I have "syncwithcurrencymanager' set to true for all the
controls. I'm assuming that actual syncwithcurrencymanager for all the
controls gets executed when the event "BindingManagerPositionChanged" fires.
The problem occurs when I set a RowFilter on the defaultview of the table in
the dataset. If the application of the RowView causes the current record to
change (because the previously displayed record didn't match the filter
criteria) then the BindingContext(...).position changes BUT the
BindingManagerPositionChanged event does NOT fire. The record in the other
controls does not change. After applying the filter I need to click my
"Next Rec" then "Prev Rec" buttons to the the controls synced up again.
I probably can programmatically do a "next rec" and then a "prev rec" but
that won't work if the RowFilter results in only 1 record being exposed.
So the question is this: If I apply a RowFilter to a table how do I force
the SyncWithCurrencyManager to update all the controls that are controlled
by BindingContextManager?
Thanks...
change the record in one control the position is also changed in the other
controls because I have "syncwithcurrencymanager' set to true for all the
controls. I'm assuming that actual syncwithcurrencymanager for all the
controls gets executed when the event "BindingManagerPositionChanged" fires.
The problem occurs when I set a RowFilter on the defaultview of the table in
the dataset. If the application of the RowView causes the current record to
change (because the previously displayed record didn't match the filter
criteria) then the BindingContext(...).position changes BUT the
BindingManagerPositionChanged event does NOT fire. The record in the other
controls does not change. After applying the filter I need to click my
"Next Rec" then "Prev Rec" buttons to the the controls synced up again.
I probably can programmatically do a "next rec" and then a "prev rec" but
that won't work if the RowFilter results in only 1 record being exposed.
So the question is this: If I apply a RowFilter to a table how do I force
the SyncWithCurrencyManager to update all the controls that are controlled
by BindingContextManager?
Thanks...