Hello Sherif,
Thank you for your post. I have been looking into your question and I can suggest using the RecordsDeleting and RecordsDeleted events of the XamDataGrid. The RecordsDeleting event is fired when you are about to delete one or more records of the XamDataGrid and the records are still in the grid. This event allows you to cancel the delete action by setting the Cancel property of the event args to true. Also, the event args allows you to check which records will be deleted, through the Records property.
The RecordsDeleted event is fired after the records are deleted from the XamDataGrid and the source collection. I have created sample application that shows how you can use those events. Also, you can read more detailed information regarding those events, here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v13.1~Infragistics.Windows.DataPresenter.DataPresenterBase~RecordsDeleting_EV.html, http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v13.1~Infragistics.Windows.DataPresenter.DataPresenterBase~RecordsDeleted_EV.html.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.