ActiveReports 9
ChartDataSourceClicked Event
Example 

Fires after a chart data source item has been clicked.
Syntax
'Declaration
 
Public Event ChartDataSourceClicked As System.EventHandler(Of ChartDataSourceClickedEventArgs)
public event System.EventHandler<ChartDataSourceClickedEventArgs> ChartDataSourceClicked
Event Data

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

PropertyDescription
CancelIndicates that the default action should be skipped.  
ChartProvides access to the control.  
Example
'Disable the Chart DataSource dialog
Private Sub arDesigner_ChartDataSourceClicked(ByVal sender As System.Object, ByVal e As GrapeCity.ActiveReports.Design.ChartDataSourceClickedEventArgs) Handles arDesigner.ChartDataSourceClicked
    e.Cancel = True
    System.Windows.Forms.MessageBox.Show("The chart datasource can not be changed!")
End Sub
//Disable the Chart DataSource dialog
void arDesigner_ChartDataSourceClicked(object sender, ChartDataSourceClickedEventArgs e)
{
    e.Cancel = true;
    System.Windows.Forms.MessageBox.Show("The chart datasource can not be changed!");
}
Requirements

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

See Also

Reference

Designer Class
Designer Members

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum