Disabling TextChange event during databinding

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Hi,

I have a form with a number of textboxes. These textboxes are all bound to
a field in a dataset, and in each of their TextChanged events I have code
that executes. When the dataset is being filled, this code executes as each
textbox is filled. This causes an error because not all the textboxes have
values in them. I only want the TextChanged events to execute when the user
manually changes a value in the textbox. How can I stop the event from
running while the dataset is being filled or, alternatively, execute the
TextChanged code only on user input?

Thanks,
Nathan
 
Back
Top