change DataSource of FastLine during runtime
Posted: Mon Nov 14, 2011 4:33 pm
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.
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.