Skip to main content
ON

DetailFormViewModelBase Members

A base class for View Model used to create, delete, view, and edit data in a detail form.

Constructors

Name Description
DetailFormViewModelBase(Object, Object) Initializes a new instance of the DetailFormViewModelBase class with specified settings.

Properties

Name Description
CloseCommand Gets the command that closes the edit form.
CloseOnDelete Gets or sets whether to close the detail edit form when the Delete operation is completed. This is a bindable property.
Context Gets the object that contains properties used as binding targets.
DataControl Gets the data control ( DataGridView or DXCollectionView ) associated with the detail form.
DataControlContext Gets the data control‘s binding context.
DeleteCommand Gets the command that deletes the item from the data source.
IsAsyncOperationInProgress Gets whether an asynchronous operation is in progress.
IsDeleted Gets whether the Delete operation is completed.
Item Gets the source item data.

Methods

Name Description
CanClose() Checks whether the Close operation is available.
CanDelete() Checks whether the Delete operation is available.
Close() Closes the detail edit form.
DeleteAsync() Asynchronously deletes the item from the data source.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from System.Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from System.Object.
GetHashCode() Serves as the default hash function. Inherited from System.Object.
GetType() Gets the Type of the current instance. Inherited from System.Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from System.Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from System.Object.
ReloadItem(Object) Populates the source item with new data.
SetDeleted() Sets the IsDeleted property to true.
ToString() Returns a string that represents the current object. Inherited from System.Object.
See Also