I have a data source that has a couple of boolean fields. I want the data source to be updated when the check boxes are checked. I have set the UpdateMode for the XamDataGrid to OnCellChangeOrLostFocus but the data source is only updated when I move off of the check box field. Is there any way to update the data source as soon as the check box is clicked?
Hello Glen,
I am very glad that my suggestion was helpful for you. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you. It's just what I needed. I changed the CheckBox to a XamCheckEditor and that also works.
Thanks,
Glen
Hello,
I have been looking into the functionality that you are looking for and by default a XamCheckEditor is used for Boolean fields. When it is used the values of the data source is updates after the XamCheckEditor exits edit mode. I can suggest re-templating the CellValuePresenter and adding a CheckBox in the ControlTemplate and binding its IsChecked property to the Value property of the cell. I have created a sample application for you which shows how this approach can be followed.
If you need any further assistance please do not hesitate to ask.