See Also

Chart Class  | Chart Members

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

PostDataProcessing Event

Occurs when the the chart is completed the data processing.

[Visual Basic]
Public Event PostDataProcessing() As PostDataProcessingEventHandler
[C#]
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

[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 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.