I want to disable the edit mode of a row but still the row can be used to select and do something (i.e) just the edit mode of a row should be removed. Browsed in IG forums and didn't get any solution for this. Is there way to do this ?
Thank you for your post. In order to make a specific record not editable you can handle the ‘EditModeStarting’ event of the XamDataGrid and if the record is selected, you can cancel the event like e.g. :
private void xamDataGrid1_EditModeStarting(object sender, Infragistics.Windows.DataPresenter.Events.EditModeStartingEventArgs e)
if (e.Cell.Record.Index == 2)
e.Cancel = true;
If you need any further assistance on this matter, feel free to ask.
Thanks for your response. This solution will work fine but i want to do it in a generic way. Is there any other generic way to do this? Because i will dynamically know which row should have removed with edit mode option.
Thank you for your feedback. This is the best approach which I can suggest you. You can loop through your records collection and on some criteria to cancel the event.
If you have any other questions on this matter, feel free to ask.
Thanks for your response. Just want to conform, is there any other way to do this ?
Currently this is no other way to make a particular record read-only.