Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 MoveData
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

quinncurtis

1164 Posts

Posted - 15 Jun 2005 :  09:26:40  Show Profile  Reply with Quote
We tested what you describe and could not reproduce the problem. The duplicate chart, Chart B in your example, picked up on the new values for all data points that were moved in Chart A.

Show the code that you use copy the datasets from Chart A to Chart B, and the code where you initialize the plot objects in Chart B with the copied datasets.

Go to Top of Page

carlao

54 Posts

Posted - 15 Jun 2005 :  11:54:11  Show Profile  Reply with Quote
I found the problem.
See in the code below that I was copying the dataset from chart A to SimpleLinePlot of chart B. It's wrong but because compiler doesn't showed any error message and neither the runtime then I could not figure about the problem. Then I just deleted the GetDataset method and it worked fine.
Thanks.
public void CopyChartTable(ShiftTableChartControl cp)
{
for(int i=0; i < this.TableChart.OnePlot.Length; i++)
{
cp.TableChart.OnePlot[i].Copy(this.TableChart.OnePlot[i].GetDataset());
}

cp.TableChart.CreateNewListener();
}
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07