EditMode Property (Remote Data)

       

Returns a value that indicates the state of editing for the current row.

Syntax

object.EditMode

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The EditMode property returns an Integer or constant as described in the following table:

Constant Value Description
rdEditNone 0 No editing operation is in progress.
rdEditInProgress 1 The Edit method has been invoked, and the current row is in the copy buffer.
rdEditAdd 2 The AddNew method has been invoked, and the current row in the copy buffer is a new row that hasn't been saved in the database.

Remarks

The EditMode property is most useful when you want to depart from the default functionality of a RemoteData control. You can check the value of the EditMode property and the value of the action parameter in the Validate event procedure to determine whether to invoke the UpdateRow method.

You can also check to see if the LockEdits property of the rdoResultset is True and the EditMode property setting is rdEditInProgress to determine whether the current data page is locked.