It's been a while, but I think you need to set the System.ComponentModel.Bindable attribute on the properties you want to expose.
Ex: public class Foo() { private string _bar = string.empty; [System.ComponentModel.Bindable(true)] public string Bar { get{return _bar;} set{_bar = value;} } } for complex binding, you'll need to implement IBindableList or IEditableList. -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Sean Greer (SBI-Chico) Sent: Monday, May 06, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] User control databindings I cannot be certain of this, however you may want to look at the IExtenderProvider interface. It has one method, bool CanExtend(object), that indicates whether your object applies to other objects. This may have to be coupled with the ProvidePropertyAttribute. I haven't done what you are attempting to do, but I have looked at the extender provider sample and it seems to be closely related to what you are attempting to do. Good luck, Seang -----Original Message----- From: Ted Osberg [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 12:21 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] User control databindings Here's the skinny: I am making a user control that I want other controls (textbox, combobox, etc...) to be able to bind to. When I add the user control to a form and go to the (Databindings) property, I cannot see my user control. However, I can see the datasets and dataviews I also have on the form. How can I get a control to see my control so it can be bound to it? You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.