Why RowEditEnding in DataGrid triggered multiple times?

Jul 20, 2009 at 7:37 PM
Edited Jul 20, 2009 at 7:38 PM

I have a DataGrid which has two columns. I want to check if a newly inserted row has data (Users enter) in both columns so I added RowEditEditing event. However I find this handler is called three times when a new row is inserted. Is this how it works (like check each column, then whole row) or something I missed to use. What I reall want to see is it works only once.

Although I can use Timestamp to make it runing only once, it is kind of awkward. Is there any nice way to reach it? Thanks