PostDataProcessing Event
Occurs when the the chart is completed the data processing.
Syntax
'Declaration Public Event PostDataProcessing As PostDataProcessingEventHandler
'Usage Dim instance As Chart Dim handler As PostDataProcessingEventHandler AddHandler instance.PostDataProcessing, handler
public event PostDataProcessingEventHandler PostDataProcessing
Remarks
This event is very useful for customizing and displaying the processed data specially when using SplitByLimit which generates more than one series from a series.
Example
The follwoing sample, get a data table and displays with a datagrid. For complete sample see features/PostDataProcessing.aspx
//This line should add in Page_Load method Chart.PostDataProcessing +=new PostDataProcessingEventHandler(OnPostDataProcessing); //The method handling the PostDataProcessing event void OnPostDataProcessing(Object sender) { DataTable dt = Chart.SeriesCollection.GetProcessedDataTable("%YValue"); chartdatagrid.DataSource = new DataView(dt); chartdatagrid.DataBind(); }
'This line should add in Page_Load method AddHandler Chart.PostDataProcessing, AddressOf OnPostDataProcessing 'The method handling the PostDataProcessing event Sub OnPostDataProcessing(sender As [Object]) Dim dt As DataTable = Chart.SeriesCollection.GetProcessedDataTable("%YValue") chartdatagrid.DataSource = New DataView(dt) chartdatagrid.DataBind() End Sub 'OnPostDataProcessing
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