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

In This Topic
    ColumnChanging Event (C1DataViewSet)
    In This Topic
    Occurs when a value is being changed for specified C1ViewColumn in a C1ViewRow.
    Syntax
    'Declaration
     
    Public Event ColumnChanging As C1ViewColumnChangeEventHandler
    public event C1ViewColumnChangeEventHandler ColumnChanging
    Event Data

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

    PropertyDescription
    Gets the C1ViewColumn which value is being changed.  
    Gets or sets a new proposed value for the C1ViewColumn which is being changed.  
    Gets an old column value.  
    Gets the C1ViewRow in which C1ViewColumn is being changed.  
    Remarks
    This event is triggered before new proposed value for a C1ViewColumn of a C1ViewRow is actually stored in a row.

    You can substitute a proposed value with another one by setting the C1ViewColumnChangeEventArgs.NewValue property value in passed event arguments.

    Raising an exception in this event prevents from storing of a new value in a row.

    Note that this event is thrown only when change of a value is being made via C1ViewRow object, it's not triggered when changing is performing directly in DataRow object on which C1ViewRow is based.

    See Also