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
2275
Setting a cell to not allow editing
posted

I have a data grid where certain cells should not be editable.  

When the grid first draws, I have three rows of data and some cells can be edited, and some not.  Then I have a button where I add a an object to the ObservableCollection populating the list, and in this case sometimes a cell should have its editing turned off.

How do I do this in the code behind?

Thanks.

Mike

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Mike,

     

    Thank you for your post. I have been looking into it and I can say that the AllowEdit Property belongs to the Field’s Settings and it is set for all the Cells from this Field, so they are all editable or not. Also I can say that when you add new Record the XamDataGrid’s InitializeRecord event is fired and you can handled it and from the EventArgs you can get the Record, Cells Fields, etc.

     

    Hope this helps you.

Children