Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Disable EditMode for a row in XamDataGrid


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 ?

  • 35319



    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.

Reply Children
No Data