ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1DataViewSet Class / RowAddNew Event

In This Topic
    RowAddNew Event (C1DataViewSet)
    In This Topic
    Occurs when the AddNew method is being called.
    Syntax
    'Declaration
     
    Public Event RowAddNew As C1ViewRowAddNewEventHandler
    public event C1ViewRowAddNewEventHandler RowAddNew
    Event Data

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

    PropertyDescription
    Gets the C1ViewRow that is being added.  
    Remarks
    In contrast to the RowChanging and RowChanged events, which are raised when editing of a newly added row is being finished, this event is raised just after a new row has been created.

    This event is an appropriate place to define default values for the row columns in code.

    Raising an exception in this event handler prevents a new row from being added to C1DataView.

    See Also