Good evening.Infragistics WinForm in a DataGrid using this code to update the changed data:
dgBase.PerformAction(UltraGridAction.ExitEditMode);dgBase.PerformAction(UltraGridAction.CommitRow);dgBase.UpdateData();
how to do it in a WPF DataGrid?thanks
Thanks for the reply and sorry for the delay in my post.I used the command is:
xdgBase.ExecuteCommand(
DataPresenterCommands.EndEditModeAndCommitRecord);
Thanks.
Hello Pranzo,
Thank you for your post. I have been looking through it and I suggest you set the UpdateMode property of your XamDataGrid to OnUpdate. By doing this the cells will update only if a command is executed ( e.g. xamDataGrid1.ExecuteCommand(DataPresenterCommands.CommitChangesToActiveRecord);). You can read more about DataPresenterCommands here:
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v10.3~Infragistics.Windows.DataPresenter.DataPresenterCommands_members.html
If you have any further questions on this matter do not hesitate to ask.