ActiveReports Developer 7
ChartDataSourceClicked Event
See Also  Example
GrapeCity.ActiveReports.Design.Win.v7 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : ChartDataSourceClicked Event

Glossary Item Box

Fires after a chart data source item has been clicked.

Syntax

Visual Basic (Declaration) 
Public Event ChartDataSourceClicked As System.EventHandler(Of ChartDataSourceClickedEventArgs)
C# 
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
Cancel Indicates that the default action should be skipped.
Chart Provides access to the control.

Example

Visual BasicCopy Code
'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
C#Copy Code
//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!");
}

See Also