Dataview.OnListChanged

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I am using VB.Net 2003 and I am having a problem with a
an inherited dataview that is bound to a data table.

I am working with a 3rd party tool that is bound to the
inherited data view and I need to prevent it from
updating when I make certain changes to the underlying
data table.

I am trying to override the OnlistChanged Sub with the
following code:

Protected Overrides Sub OnListChanged(ByVal e As
System.ComponentModel.ListChangedEventArgs)

However, this code is never being reached when I change a
record in the datatable that is bound to the inherited
dataview.

I can override the IndexListChanged sub without any
problems.

Any suggestions.....
 
Hi Mike,

Why don't you bind to underlying DataTable's *Changing events?
 
Did you omit Handles MyList.Changed from your posting on purpose?
 
Miha -

I opened the development environment this morning and
every thing is working (I have not changed a line of
code).

There must have been something going on with the MDE
because I could override IndexListChanged but not
OnlistChanged using exactly the same syntax.

Thanks for your repsonse.

Mike
 
Miha -
I opened the development environment this morning and
every thing is working (I have not changed a line of
code).

There must have been something going on with the MDE
because I could override IndexListChanged but not
OnlistChanged using exactly the same syntax.

Thanks for your repsonse.

Great, don't touch anything then :)
 

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

Back
Top