Index

From: Ted Malone  Configuresoft, Inc.
Subject: Databound Series & Windows Mobile 5.
Date: Wed, 24 May 2006 08:03:32 -0600
Newsgroup: steema.public.teechart7.dotnet  



Hi;

I am currently evaluating TChart as a control that we'll use in both Winform
and Mobile applications. My charting needs are very simple, but I want to be
able to reuse the code as much as possible. I've created a Winform chart
that consumes a Web Service and plots data appropriately (very nicely, I
might add) in a line chart with 2 series...

However, the same code on the Mobile device never plots, even though the
data is identical...

Unfortunately I've found the samples for Mobile not too helpful when using
data binding..

Any thoughts? (Code snippet below, maybe I'm just doing something stupid)

Thanks.

Ted Malone

Steema.TeeChart.Axis axis1 = tChart1.Axes.Bottom;

axis1.Automatic = true;

Steema.TeeChart.Axis axis2 = tChart1.Axes.Left;

axis2.Automatic = false;

axis2.Maximum = 100;

axis2.Minimum = 0;

axis2.Increment = 10;


DataView dv = new
DataView(cSICompliance.dsCompliance.Tables["ComplianceTrend"]);

DataView dv2 = new
DataView(cSICompliance.dsCompliance.Tables["ComplianceTrend"]);

dv.RowFilter = "Template_Name = 'Antivirus Operations'";

dv2.RowFilter = "Template_Name = 'Best Practices - Exchange'";

line1.YValues.DataMember = dv.Table.Columns["PctCompliant"].ToString();

line1.LabelMember = dv.Table.Columns["DateTimeString"].ToString();

line1.DataSource = dv;

line2.YValues.DataMember = dv2.Table.Columns["PctCompliant"].ToString();

line2.LabelMember = dv2.Table.Columns["DateTimeString"].ToString();

line2.DataSource = dv2;