ComponentOne Data Source for Entity Framework
C1.LiveLinq.LiveViews Namespace / ViewRowCollection Class / ViewRowAdding Event

In This Topic
    ViewRowAdding Event
    In This Topic
    Occurs after a new view row is created so it can be populated with default values.
    Syntax
    'Declaration
     
    
    Public Event ViewRowAdding As System.EventHandler(Of ViewRowAddingEventArgs)
    public event System.EventHandler<ViewRowAddingEventArgs> ViewRowAdding
    Event Data

    The event handler receives an argument of type ViewRowAddingEventArgs containing data related to this event. The following ViewRowAddingEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the new view row that has just been added to ViewRowCollection.  
    Remarks

    This event occurs only if the new row is created directly in the view, as a result of a view update operation, that is, with CreateRow or via data binding. It does not occur when new rows appear in the view as a result of view maintenance on changes made to the view's source data collections.

    This event occurs immediately on creating the new row, before the method creating it returns, before the row enters edit mode (see ViewRowState about edit mode).

    See Also