DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews Namespace / ViewRow Class / BeginEdit() Method

In This Topic
    BeginEdit() Method
    In This Topic
    Puts the ViewRow into edit mode.
    Syntax
    'Declaration
     
    Public Sub BeginEdit() 
    public void BeginEdit()
    Remarks

    In edit mode, events and notifications are temporarily suspended, letting the user make changes to more than one property without triggering validation rules.

    Edit mode is a standard feature of .NET data binding mechanism, supported by every data source implementing the System.ComponentModel.IEditableObject interface. For detailed explanation, see, for example, System.Data.DataRowView in .NET Framework documentation.

    While a view item is in edit mode, changes made to its updatable properties directly in the view are not propagated to the corresponding base data properties until the edit operation is completed by a call to ViewRow.EndEdit (see View.IsReadOnly about updatability of view element properties directly in the view).

    If you change base data (source) properties, those changes are propagated to this view and other views depending on that base data according to the normal view maintenance process, regardless of whether the view row is in edit mode or not.

    Many-to-one relations between view properties are maintained automatically on changes made to updatable properties directly in the view, regardless of whether the view row is in edit mode or not. For example, if you set a CustomerID directly in the view, CustomerName will change accordingly, even if you do it in edit mode.

    See Also