Page 1 of 1

change DataSource of FastLine during runtime

Posted: Mon Nov 14, 2011 4:33 pm
by 13048043
Hello

I've got a Fastline-Object and changing his Datasource-Property at runtime. My DataSource-object is a DataSet-Object. When the DataSource-Property is changed, the TChart have to repaint the FastLine proper to the new DataSource-Values. I do this via the CheckDataSource-Methode of the FastLine.
The problem is, that this is just working for the first time after the program-start and then it seems the dataSource have not be changed.

Here is the code

Public Property FastLine1_DataSource() As Object
Get
Return FastLine1.DataSource
End Get
Set(ByVal value As Object)
FastLine1.DataSource = value
FastLine1.CheckDataSource()
End Set
End Property

Any Ideas, maybe I don't use the right methods.

Re: change DataSource of FastLine during runtime

Posted: Thu Nov 17, 2011 12:10 pm
by 10050769
Hello Rudi,

I recommend you take a look in demo project, concretely in the All features\Welcome !\Datasets\Single Record. I think this example can help you to achieve as you want.

I hope will help.