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
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.