Datagridview rowvalidating e cancel

I tried to show the confirmation dialog at the roweditended event, but when the user clicks on No, the row's edit mode is still being ended.

I don't want the edit mode to end when the user does not want to save the row and I want the focus to stay on the current editing cell.

I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing.A workaround I found is that If I move the confirmation dialog code to the rowvalidating event and set the Is Valid to false to stop the row edit ended event being fired, however this causes an undesired side effect of the row turning to red, I have consulted with the business users, and they feel like it's too confusing to have the background turn red when there's no validation error.My question would be, how does telerik cancel the row level editing event without setting the Is Valid to false?Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time.Watch the videos and start improving your app based on facts, not hunches.

Leave a Reply