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
210
Allow Add New but not Edit, Delete
posted

How can I set the DataGrid so that the user can add a new item to the grid, but existing items are all read only to them? 

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    I apologize that this post was not answered sooner. We are making the effort to ensure all posts are addressed by an Infragistics expert.

    One way to achieve this is to cancel the EditModeStarting event of the XamDataGrid if the record that is going to enter edit mode is the add new record. You can cancel it by setting e.Cancel = true; and you can see which record this is through the event arguments - e.Cell.Record

    Thank you!

Children
No Data