I have grid where the number of columns are determined at run-time and hence created dynamically, these columns are bound to a binding list of custom business objects. I've set up an event handler for the list ie.
object sender, ListChangedEventArgs e) now, say when the window is not maximised and not all the columns are visible, when I scroll horizontally the ListChangedEventHandler will get called for some of the non-visible columns as they come into view. Is there a way I can avoid this as I am using this event to check for a PropertyChanged which calls another function to update a database - which could prove to be inefficient if the app is trying to update the database everytime a user scrolls.
Thanks for your help.