I have set del key action for xamgrid like:
DeleteKeyAction="DeleteRowOfActiveCell"
then when user hit Del key, the row will be removed from the list, then I can submit changes to save data back database. It works fine.
But my question is: I want to stop the del action for the specific row, for those rows, not allow delete action.
How to resolve this issue?
Hello Benjamin,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
You can use the RowDeleting event (http://help.infragistics.com/NetAdvantage/Silverlight/?page=InfragisticsSL5.Controls.Grids.XamGrid.v12.2~Infragistics.Controls.Grids.XamGrid~RowDeleting_EV.html).
This event allows you to cancel the deleting of a row by setting e.Cancel = true. There is also Row event argument which you can use to check which row is about to be deleted - e,Row.Data will give you access to the underlying data-object if you want to check any of the properties.
HTH