'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.
Property | Description |
---|---|
Column | Gets the C1ViewColumn which value is being changed. |
NewValue | Gets or sets a new proposed value for the C1ViewColumn which is being changed. |
OldValue | Gets an old column value. |
Row | 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