We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Binding to two StaticBarItems

I''m trying to bind text from an object to two separate StaticBarItems'' text property. However, it gives me the error "This would cuase two bindings in the collection to bind to the same property". The code is shown below, since there are separate objects, why is it giving this, thanks sbiConStatus.DataBindings.Add(New Binding("Text", _samp, "ConcentrateStatus")) sbiMatStatus.DataBindings.Add(New Binding("Text", _samp, "MatteStatus"))

2 Replies

DT Dave Taylor February 10, 2006 08:27 PM UTC

An even bigger problem, the text actually binds to the form''s caption...NOT to the static bar items as expected??


MJ Mano J Syncfusion Team February 13, 2006 05:13 AM UTC

Hi David, I have attached a sample that shows how to bind data to staticBarItems. Please refer to it and let me know if you have any problems. Thanks for using Syncfusion products. Regards, Mano DataBinding_sample.zip

Loader.
Live Chat Icon For mobile
Up arrow icon