troubleshooting Question

Is it safe to show a MessageBox from the DataGridView RowValidating event handler?

Avatar of rajesh_khater
rajesh_khater asked on
C#Visual Basic.NET
6 Comments2 Solutions979 ViewsLast Modified:
Is it safe to show a MessageBox from the DataGridView RowValidating event handler?

Some time back, I faced a situation where showing a MessageBox from the RowValidating event handler triggered another occurence of the RowValidating event handler.

My question is:
1. Does showing a MessageBox from the RowValidating event handler have any side effects ?
2. If Yes, how to code the RowValidating event handler to deal properly with those side effects (showing the MessageBox is a requirement for me).

ASKER CERTIFIED SOLUTION
illusio
Software Architect / Team Leader

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros