Spread Windows Forms 15.0
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBox Class / OnDataSourceChanged Method
A System.Object instance indicates the event source.
A System.EventArgs instance contains the event data.


In This Topic
    OnDataSourceChanged Method (GcComboBox)
    In This Topic
    Raises the DataSourceChanged event.
    Syntax
    'Declaration
     
    
    Protected Overridable Sub OnDataSourceChanged( _
       ByVal sender As Object, _
       ByVal e As EventArgs _
    ) 
    'Usage
     
    
    Dim instance As GcComboBox
    Dim sender As Object
    Dim e As EventArgs
     
    instance.OnDataSourceChanged(sender, e)
    protected virtual void OnDataSourceChanged( 
       object sender,
       EventArgs e
    )

    Parameters

    sender
    A System.Object instance indicates the event source.
    e
    A System.EventArgs instance contains the event data.
    Remarks
    Raising an event invokes the event handler through a delegate.

    The OnDataSourceChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

    Notes to Inheritors: When overriding OnDataSourceChanged in a derived class, be sure to call the base class's OnDataSourceChanged method so that registered delegates receive the event.

    See Also