ActiveReports.Design6 Assembly > DataDynamics.ActiveReports.Design Namespace : DataSourceIconClickEventArgs Class |
'Declaration Public Class DataSourceIconClickEventArgs Inherits System.EventArgs
public class DataSourceIconClickEventArgs : System.EventArgs
//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 }
'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
System.Object
System.EventArgs
DataDynamics.ActiveReports.Design.DataSourceIconClickEventArgs
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2