I have an event that monitors for changes to a datagridview. I don’t want this to be triggered when the datagrid is bound for the first time and it’s configuration is done. Is it possible to ‘opt-out’ of triggering an event in certain circumsttances?
Thanks.
I usually have a private
bool _isLoadingvariable in the form. When I do initial data binding I then set_isLoadingto true, and set it to false once data bidning is done. In my events I then check if_isLoadingis true, and if it is I just return out of the event method without doing anything.