Retrieving series data as a dataset
Posted: Fri Nov 07, 2008 2:40 am
Hello.
Can you please confirm that the following mechanism I'm using is fully supported, and it something that will always be supported.
I'm populating a line series by adding X(time), Y values. These are being added at a frequency say of 20 seconds. I then execute the following code to retrieve the DataSource of the series as a DataSet:
System.Data.DataSet penData = penSeries.DataSource as System.Data.DataSet;
This results in a DataSet retrieved from the series of all the sample pairs it currently contains. Repeating the above command returns the same dataset, even though new samples have been added. In order for me to retrieve the data including the new samples added since the last time the above command was executed, I have to also do the following:
penSeries.DataSource = null;
Only after setting the series DataSource to null, will I be able to retrieve all the samples from the series again.
Is this expected behaviour?
thanks,
Ben.
Can you please confirm that the following mechanism I'm using is fully supported, and it something that will always be supported.
I'm populating a line series by adding X(time), Y values. These are being added at a frequency say of 20 seconds. I then execute the following code to retrieve the DataSource of the series as a DataSet:
System.Data.DataSet penData = penSeries.DataSource as System.Data.DataSet;
This results in a DataSet retrieved from the series of all the sample pairs it currently contains. Repeating the above command returns the same dataset, even though new samples have been added. In order for me to retrieve the data including the new samples added since the last time the above command was executed, I have to also do the following:
penSeries.DataSource = null;
Only after setting the series DataSource to null, will I be able to retrieve all the samples from the series again.
Is this expected behaviour?
thanks,
Ben.