Skip to main content

EditRowViewModel Members

Contains information on a data row that a user currently edits in the edit form.

Constructors

Name Description
EditRowViewModel(DataGridView) Initializes a new instance of the EditRowViewModel class with specified settings.

Properties

Name Description
CellIndex Gets the cell index of the edited row.
DataGridView Gets the DataGridView instance where the row is edited.
Errors Gets or sets the collection of errors.
Item Gets the edited item.
RowHandle Gets the handle of the row that contains the edited item.
Values Gets the collection of the item’s field values.

Methods

Name Description
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.
GetDisplayText(Object, String) Returns the displayed text by the specified field name and value.
GetError(String) Returns errors for the item’s specified field.
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.
Raise() Raises the validation error for the edited item.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SetValue(String, Object) Sets the value for the item’s specified field.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PropertyChanged Occurs when the data grid item’s value is changed.
ValidateCell Validates the edited cell’s new value.
See Also