Skip to main content
ON

DetailEditFormViewModel Members

A View Model used to edit source item values in a separate form.

Constructors

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

Properties

Name Description
CloseCommand Returns the command that closes the edit form. Inherited from DetailFormViewModelBase.
CloseOnDelete Gets or sets whether to close the edit form when the edit item is deleted from the data source. Inherited from DetailFormViewModelBase.
CloseOnSave Gets or sets whether to close the edit form when the edit item value changes are saved to the source.
Context Gets or sets the object that contains the properties you can use as binding targets. Inherited from DetailFormViewModelBase.
DataControl Returns the data control (DataGridView or DXCollectionView) for whose item the edit form is invoked. Inherited from DetailFormViewModelBase.
DataControlContext Returns the data control‘s binding context. Inherited from DetailFormViewModelBase.
DeleteCommand Returns the command that deletes the edit item. Inherited from DetailFormViewModelBase.
IsDeleted Checks whether the edit item is deleted. Inherited from DetailFormViewModelBase.
IsNew Returns whether the edit item is newly created.
IsSaved Checks whether the edit item is successfully saved to the data source.
Item Gets or sets the edited data source item. Inherited from DetailFormViewModelBase.
SaveCommand Returns the command that saves the edit item to the bound data source.

Methods

Name Description
CanClose() When implemented, checks whether the edit form can be closed. Inherited from DetailFormViewModelBase.
CanDelete() When implemented, checks whether the edit item can be deleted from the data source. Inherited from DetailFormViewModelBase.
CanSave() When implemented, checks whether item value changes can be saved to the source.
Close() Closes the edit form.
Delete() When implemented, deletes the source item for which the current edit form is displayed. Inherited from DetailFormViewModelBase.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Save() Saves the changes applied to the edit item to the source.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PropertyChanged Occurs when a property value changes. Inherited from DetailFormViewModelBase.
See Also