Skip to main content
ON

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public virtual Task<bool> DeleteAsync()

#Returns

Type Description
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