See Also

DataEngine Class  | DataEngine Members

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

Data Property

Gets or sets a DataTable, DataSet, DataView, OleDbDataReader, SqlDataReader, IDataReader, XML file name, or an object that implement IEnumerable, ArrayList or HashTable used to generate a SeriesCollection.

[Visual Basic]
Public Property Data As Object
[C#]
public object Data {get; set;}

Remarks

When not connecting to a database directly using ConnectionString and SqlStatement, this property offers an alternative method for obtaining database data.

Example

This example sets the data property to a dataTable and defines data fields mapping.

[C#] 

DataEngine de = new DataEngine(); 
de.Data = myDataTable; 
de.DataFields = "XAxis=FirstCol,YAxis=SecondCol"; 
Chart.SeriesCollection.Add(de.GetSeries());

[Visual Basic] 

Dim de As New DataEngine()
de.Data = myDataTable
de.DataFields = "XAxis=FirstCol,YAxis=SecondCol"
Chart.SeriesCollection.Add(de.GetSeries())

See Also

DataEngine Class  | DataEngine Members

 

 


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