Example of handling TableCleared in typed DataTable partial class?

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hi,

I tried to handle the TableCleared event in a typed version of a DataTable
partial class, similar to the example for handling RowChanging at
http://msdn2.microsoft.com/en-us/library/1120xds5.aspx

(TableInitialized handling worked). I tried setting up my event handlers
before and after the call to base.EndInit(), TableInitialized setup had to
come before of course.

Is this a bug or what/?

Thanks
Martin
 
Sorted,

Rowchanged is raise by another class whereas the tablecleared is raised by
this class, therefore I should override OnTableClearing instead.
 
Back
Top