Skip to main content
ON

DetailFormViewModelBase Members

A base class for View Models used to view and edit DataGridView or CollectionView data in separate forms.

Constructors

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

Properties

Name Description
CloseCommand Returns the command that closes the edit form.
CloseOnDelete Gets or sets whether to close the edit form when the edit item is deleted from the data source.
Context Gets or sets the object that contains the properties you can use as binding targets.
DataControl Returns the data control (DataGridView or DXCollectionView) for whose item the edit form is invoked.
DataControlContext Returns the data control‘s binding context.
DeleteCommand Returns the command that deletes the edit item.
IsDeleted Checks whether the edit item is deleted.
Item Gets or sets the edited data source item.

Methods

Name Description
CanClose() When implemented, checks whether the edit form can be closed.
CanDelete() When implemented, checks whether the edit item can be deleted from the data source.
Close() When implemented, closes the edit form.
Delete() When implemented, deletes the source item for which the current edit form is displayed.
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.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

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