Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...