Guys.
I have created a class DelimitedList<T> which inherits from BindingList<T>. I also have a Csla business object that has a property defined as DelimitedList<int>. I then created a UserControl that has a property of this same type.
I added the following attribute to this property.
[Bindable(BindableSupport.Yes)]
Consequently the property now appears in the UserControl's DataBindings list in the PropertyGrid. However, when I try to bind the property of my business object to the property of the usercontrol I cannot see the property in the Databinding configuration popup. It shows my object, and it also shows all its properties - except the one I want to bind to! Surely I must be able to databind a usercontrol property to a business object property of the same type? I have found that I can force it to work by doing the following
plContactTypes.DataBindings.Add(
"PickedIds", bsContactSearchArgs, "ContactTypeIDList");Here PickedIds is the property on my UserControl, bsContactSearchArgs is a binding source that has its DataSource property set to an instance of my business object, and ContactTypeIDList is the property of the BO I want to bind to. Why can't I get it to work through the property grid?
TIA.
Copyright (c) Marimer LLC