ActiveReports Developer 7
DataSourceIconClickEventArgs Class
Members  Example  See Also 
GrapeCity.ActiveReports.Design.Win.v7 Assembly > GrapeCity.ActiveReports.Design Namespace : DataSourceIconClickEventArgs Class

Glossary Item Box

DatasourceClickEventArgs holds the cancel value to stop the default Datasource dialog from showing.

Object Model

DataSourceIconClickEventArgs Class

Syntax

Visual Basic (Declaration) 
Public Class DataSourceIconClickEventArgs 
   Inherits System.EventArgs
C# 
public class DataSourceIconClickEventArgs : System.EventArgs 

Example

C#Copy Code
//Create the DataSourceClick event handler 
this.arDesigner.DataSourceIconClick += new DataSourceIconClickEventHandler(arDesigner_DataSourceIconClick); 
 
//Create the event handling method to respond to the user clicking the Datasource Icon 
//Set Cancel to True to stop the default Datasource dialog from showing 
private void arDesigner_DataSourceIconClick(object sender, DataSourceIconClickArgs e) 
{ 
    e.Cancel = true; 
 
    Form f = new Form(); 
    f.ShowDialog(this); 
 
    // Add custom code to modify the report data source based on user preference 
}
Visual BasicCopy Code
'Create the DataSourceClick event handler
Me.arDesigner.DataSourceIconClick += New DataSourceIconClickEventHandler(arDesigner_DataSourceIconClick)

'Create the event handling method to respond to the user clicking the Datasource Icon
'Set Cancel to True to stop the default Datasource dialog from showi
Private Sub arDesigner_DataSourceIconClick(ByVal sender As Object, ByVal e As DataSourceIconClickArgs)
    e.Cancel = True

    Dim f As Form = New Form()
    f.ShowDialog(Me)

    ' Add custom code to modify the report data source based on user preference
End Sub

Inheritance Hierarchy

System.Object
   System.EventArgs
      GrapeCity.ActiveReports.Design.DataSourceIconClickEventArgs

See Also