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
530
XamDataGrid UpdateMode to be like Binding.UpdateSourceTrigger=PropertyChanged
posted

If there any method to use for a cell in a datagrid, such that it commits the changes to the underlying datasource as cell content change?  I have a window that has a XamDataGrid with three columns, two are comboboxes and the last is a generic editor (xamTextEditor).  When all three are filled in the OK button is enabled based on the underlying viewmodel.  The issue is that the button is not enabled until the user either leaves the cell, or leaves the row, or hits Enter, thus comitting the row.  If I put code in to trap the CellChange and end and start the editmode,

 

FilterGrid.ExecuteCommand(

 

DataPresenterCommands

.EndEditModeAndAcceptChanges);

FilterGrid.ExecuteCommand(

 

DataPresenterCommands

.StartEditMode);

then the autoselection of the text in the xamTextEditor poses a different problem, in that the user cannot continuously edit.  Is there any way around this to elegantly solve this?