|
I have added an event handler that should execute each time the position in a dataset is changed. The event must also be fired when the dataset is initialized. Unfortunately setting the currency to the initial postion of "0" does not fire the event. My work around has been to increment/decrement the postion but this doesn't seem very clean to me. How can I force an event to fire in general and in this case in particular?
currency = BindingContext[da.StationDataView]; currency.PositionChanged += new EventHandler(Binding_PositionChanged); currency.Position = 0; //currency.Position++; //currency.Position--;
|