Back to Devexpress

DetailEditFormViewModel.SaveAsync() Method

maui-devexpress-dot-maui-dot-core-dot-detaileditformviewmodel.md

latest1.4 KB
Original Source

DetailEditFormViewModel.SaveAsync() Method

Asynchronously saves the edited item to the data source.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
public virtual Task<bool> SaveAsync()

Returns

TypeDescription
Task<Boolean>

true if the edited item is successfully saved to the data source; otherwise, false.

|

Remarks

Call the CanSave() method to check whether the Save Changes operation is available. You can also use the SaveCommand to save changes in the edited item.

See Also

CRUD Operations in a Data-Bound Data Grid View for .NET MAUI

CRUD Operations in a Data-Bound Collection View for .NET MAUI

DetailEditFormViewModel Class

DetailEditFormViewModel Members

DevExpress.Maui.Core Namespace