Hi everyone!

I am working on a custom control, and for the life of me I can't figure this one out.

As of right now, all properties for controls that are settable in the editor I use this code:

        [Browsable(true),
        Description(""),
        Category(""),
        DefaultValue()]

I fill in the blanks appropriately, but the control I am working on now will be bindable, and I need a DataSource property which is fine, but I can't get the editor to allow me to set the property since the property uses an object. Is there a way to achieve this:
b59b72f3fab6b3edd674baae0077551b

Right now I get nothing. The property is grey and can't be set except in code. Am I missing an attribute or is there something else I can do?

Nevermind!

Adding RefreshProperties(RefreshProperties.Repaint), AttributeProvider(typeof(IListSource))] seems to have done the trick!

I love metadata!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.