Hi,
why does the DragDrop event of RadGridView for Winforms (2008 Q2) swallow exceptions?
There are two RadGridViews on my form (radGridView1 and radGridView2) and these are their event handlers:
It was very hard to detect which part of our code is responsible for catching and not letting exceptions to be handled in an upper level. (The code is a bit more complex than the one I wrote here.)
That also means that whenever something unexpected happens that I don't handle in my code, the form will continue executing because it won't be able to handle the exception at the form's topmost level.
I'm looking forward to receiving an explanation for this weird behaviour.
Regards,
Tamás
why does the DragDrop event of RadGridView for Winforms (2008 Q2) swallow exceptions?
There are two RadGridViews on my form (radGridView1 and radGridView2) and these are their event handlers:
private
void radGridView2_MouseDown(object sender, MouseEventArgs e)
{
radGridView2.DoDragDrop("some data", DragDropEffects.Copy);
}
private void radGridView1_DragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
private void radGridView1_DragDrop(object sender, DragEventArgs e)
{
throw new Exception();
}
It was very hard to detect which part of our code is responsible for catching and not letting exceptions to be handled in an upper level. (The code is a bit more complex than the one I wrote here.)
That also means that whenever something unexpected happens that I don't handle in my code, the form will continue executing because it won't be able to handle the exception at the form's topmost level.
I'm looking forward to receiving an explanation for this weird behaviour.
Regards,
Tamás