dotnetCHARTING Send comments on this topic.
GetProcessedDataTable Method
See Also  Example
dotnetCHARTING Namespace > SeriesCollection Class : GetProcessedDataTable Method



Returns a DataTable of processed data.

Overload List

OverloadDescription
GetProcessedDataTable(String) Returns a DataTable of processed data.  
GetProcessedDataTable(String,Boolean) Returns a DataTable of processed data.  
GetProcessedDataTable(String,Boolean,Boolean) Returns a DataTable of processed data.  
GetProcessedDataTable(String,Boolean,Boolean,String) Returns a DataTable of processed data.  

Example

The follwoing sample, get a data table and displays with a datagrid. For complete sample see features/PostDataProcessing.aspx
C#Copy Code
//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 BasicCopy Code
'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

Remarks

This method usually called in PostDataProcessing event handler method when data generated dynamically from a database. Then, the datatable can be displayed with dataGrid or other controls.

See Also