I have an array of objects ( s1values() ) . In this case type of opc.da.itemvalueresult
These itemvalueresults have a Timestamp() as date property, and a value() as object propery.
I'd like to bind the text property of some labels to display the results of the properties listed above, and display changes accordingly any time the data in the array is updated.
So far I have tried setting a bindingsource = s1values(). Which does populate items accordingly in the bindingsource
(i.e. bindingsource(1) ... bindingsource(2) etc)
Then I used label1.databindings.add( "Text", bindingsource(1), "Timestamp")
and label2.databindings.add("Text", bindingsource(1), "Value").
This seems to work and display the properties I desired initially. The problem is that any time I re-read the items in the array it won't update the labels. Even if I redo bindingsource = s1values() or use bindingsource.resetbindings(true or false). I can't seem to get it to display changed values.
I'm sure I'm missing something simple and fundamental to databinding, but I can't seem to pick up on what it is.
Thanks in advance for any help.