Back to Devexpress

DetailFormViewModelBase.DeleteAsync() Method

maui-devexpress-dot-maui-dot-core-dot-detailformviewmodelbase-0b306b71.md

latest1.4 KB
Original Source

DetailFormViewModelBase.DeleteAsync() Method

Asynchronously deletes the item from the data source.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
public virtual Task<bool> DeleteAsync()

Returns

TypeDescription
Task<Boolean>

true if the item is successfully deleted from the data source; otherwise, false.

|

Remarks

To check whether the Delete operation is available, you can call the CanDelete() method.

You can also use the DeleteCommand to delete the source 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

DetailFormViewModelBase Class

DetailFormViewModelBase Members

DevExpress.Maui.Core Namespace