See Also

Chart Class  | Chart Members

Language

Visual Basic

C#

JScript

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

PostDataProcessing Event

Occurs when the the chart is compeleted the data processing.

[Visual Basic]
Public Event PostDataProcessing() As PostDataProcessingEventHandler
[C#]
public event PostDataProcessingEventHandler PostDataProcessing();
[JScript]
In JScript, you can handle the events defined by another class, but you cannot define your own.

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

[C#] 

//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(); 
  
}

[Visual Basic] 

'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

See Also

Chart Class  | Chart Members

 

 


2002 - 2004 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.