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

In This Topic
    CalculateColumn Event (C1DataViewSet)
    In This Topic
    Occurs when C1ViewColumn value is being retrieved.
    Syntax
    'Declaration
     
    Public Event CalculateColumn As C1ViewColumnCalculateEventHandler
    public event C1ViewColumnCalculateEventHandler CalculateColumn
    Event Data

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

    PropertyDescription
    Gets the C1ViewColumn object for which a value is being calculated.  
    Gets the C1ViewRow in which the C1ViewColumn value is being calculated.  
    Gets or sets the calculated value of the column.  
    Remarks
    This event allows you to calculate C1ViewColumn value in code. It is triggered when column value is being read by a client code for columns having the C1ViewColumn.RaiseCalculateColumnEvents property value set to true. To define a calculated column value the C1ViewColumnCalculateEventArgs.Value must be set. See the Defining Column Value Calculations topic for details on C1ViewColumn value calculation.
    See Also