DataAdapeter Events

  • Thread starter Thread starter runningdog
  • Start date Start date
R

runningdog

Hi,

I am writing a control that needs to respond to changes in the DataSet that
it is bound to.
Is there an event raised that I can catch to check every time the
DataAdapter performs a fill.

TIA Steve
 
Hi,

Since you are invoking the Fill you will certainly know when it finished?
Or did you mean the events *during* the Fill?
 
Hi runningdog,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to get the event when the
DataSet is getting filled. If there is any misunderstanding, please feel
free to let me know.

I agree with Miha's advice, since you are calling the Fill method. You can
certainly know when it is getting called and do what you need after Fill.
If you're filling the inside DataSet from outside the control, you can
write a method for the control to fill the DataSet, so every Fill call will
be known by your code.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Thanks Kevin and Miha.

I have a control that acts on a dataset filled from the outside.
I have provided a public method to deal with the post fill events.
However the control would be more self-contained if I could simple assign it
a dataset to deal with and have it detect a fill and deal with it.
It is a control that will be regularly uesed in my apps. so I would be
removing the possibility of forgetting to call the controls fill routine.

TIA Steve
 
Correction to previous: The Fill method, of couse, belongs to the Data
Adapter, not the Data Set.
 
I left that one in the too hard basket :)
Integrating the derived class with the IDE data adapter wizards might prove
interesting.

Thanks for the thoughts
 
Back
Top