System.Data.VersionNotFoundException

RobEmDee

Centurion
Joined
Mar 25, 2003
Messages
130
Location
Richmond, VA
I am getting this Exception thrown when in a Parent/Child DataGrid, the user expands Parent Row (click '+') and there are no Child Rows related to the Parent Row in the Child Table (happens often in my app). Because I am just setting the DataSource for the DataGrid to the Parent Table, I am having trouble figuring out how I can trap this Exception. Any ideas?
 
I'm not sure if this will help, but often when I get untrapped errors, it's helpful to look at the Call Stack (under Debug->Windows). When you get the "Break, Continue, End" message box, press Break (or is it continue?) and the code should be highlighted with a Green Line (sorry, don't have .NET with me right now).

Now open the Call Stack window. Lines in black are your code, lines in light grey are system calls (windows messages, internal events, etc.). You should also be able to see DataSet events (such as ItemChanged and such) even though they're happening "internal" to a DataSet. You might be able to see what's causing the problem...

-Ner
 
Back
Top