views:

60

answers:

1

Hello I am looking for an event I can handle for row deletion.

+3  A: 

Instead of using an event on the DataGrid you should use a collection as its ItemsSource which supports change notification. Unfortunately the de-facto standard "ObservableCollection" does not support an event that fires before an item is removed, but it's quite easy to derive your own collection class from ObservableCollection which overrides RemoveItem and raises an appropriate event that can be cancelled.

Josh Einstein
Sounds fair enough, any further suggestions will be welcommed.
Shimmy