RowEditEnding() event

Mar 28, 2009 at 12:56 PM
Edited Mar 28, 2009 at 1:37 PM
I don't know if this is just my problem.
I put messagebox inside RowEditEnding event.
It displays more than once.

Is it a bug?

Here is my code:

 private void MainDataGrid_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e)
           if (e.EditAction == DataGridEditAction.Cancel)
                e.Cancel = false;

            if (e.EditAction == DataGridEditAction.Commit)
                e.Cancel = !Validate(e.Row.Item);
               if (e.Cancel)   MessageBox.Show("your data is incorrect.");// Note: this message shows up several time. Why?

Apr 21, 2009 at 2:05 PM
I have the same problem.

when I display a MessageBox in the RowEditEnding event. The message appears multiple times.
May 18, 2009 at 1:49 PM

I am having the same issue. Were either of you able to solve this problem?