Disabling TextChange event during databinding

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top