Hi,
Have been searching for this for quite sometime now. I am using the XamDataGrid in a scenario where the columns are created dynamically. I have achieved this by wrapping the XamDataGrid inside a user control and then exposing a new Dependency property of type IEnumerable.This means I create the Columns on the fly. Another thing worth noting is, I am using the Metro Style for XDG provided here.
Having said that, I am creating a field of type bool which gets displayed correctly, However I want the property changed notification to be fired with property changed (unlike lost focus) that XDG by default provides. Don't we have some quick property that can enable us achieve that. If not, what would be the best way?
regards,
James
Hi Sid,
I have been looking into your requirement and my suggestion is to follow the provided approach from the link below :
http://www.infragistics.com/community/blogs/alex_fidanov/archive/2010/03/12/commit-changes-when-the-value-of-editor-changes.aspx
This way your underlying data will be immediately updated when the state of the checkbox in any cell in your Boolean field is changed.
Let me know, if you need any further assistance on this matter.
Hey,
Thanks. I have been able to solve the issue by another means. Without handling the cell changed event.
I know this is an old thread, but may I ask how you solved the issue? I have the same requirement.
I found the property on a Field object Settings.DataItemUpdateTrigger = DataItemUpdateTrigger.OnCellValueChange;
This worked for me. Thanks!