See Also

SeriesCollection Class  | SeriesCollection Members  | Overload List

Language

Visual Basic

C#

Show All

tokenTemplate
transposeData
addSeriesName
header
See Also Languages dotnetCHARTING Send comments on this topic.

GetProcessedDataTable(String,Boolean,Boolean,String) Method

Returns a DataTable of processed data.

[Visual Basic]
Overloads Public Function GetProcessedDataTable( _    ByVal tokenTemplate As String, _    ByVal transposeData As Boolean, _    ByVal addSeriesName As Boolean, _    ByVal header As String _ ) As DataTable
[C#]
public DataTable GetProcessedDataTable(    string tokenTemplate,    bool transposeData,    bool addSeriesName,    string header );

Parameters

tokenTemplate
transposeData
addSeriesName
header

Return Type

Returns a data table of the processed data.

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.

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",true,true,"Sales"); 
    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", True, True, "Sales")
   chartdatagrid.DataSource = New DataView(dt)
   chartdatagrid.DataBind()
End Sub 'OnPostDataProcessing

See Also

SeriesCollection Class  | SeriesCollection Members  | Overload List

 

 


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