Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 600665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:37:48+00:00 2026-05-13T16:37:48+00:00

I have a Subclass of a BindingSource that just extends it a bit for

  • 0

I have a Subclass of a BindingSource that just extends it a bit for our special needs, and I would like to support it for the VS2008 Designer.

I have three properties, that I would like to get designer support for, two of them should be set to other Controls on the form, one should be set to a Type.

Displaying them in den Designer as well as setting a default value of null was quite easy, but how do I manage to get VS to select availlable Controls (ideally of desired type only) and or Types ?

Here’s the code for the properties so far, any hint is welcome, since I do not know anything over VS-Designer support.

public class BindingSourceEx
    : BindingSource
{
    [DisplayName("DataSourceType")]
    [Description("Sets the type to bind to.")]
    public Type DataSourceType
    {
        get;
        set;
    }

    [DisplayName("BindingNavigator")]
    [DefaultValue(null)]
    [Description("Sets the BindingNavigatorQ1 to use.")]
    public BindingNavigatorEx BindingNavigator
    {
        get;
        set;
    }

    [DisplayName("DataGridView")]
    [DefaultValue(null)]
    [Description("Sets the DataGridViewQ1 to use.")]
    public DataGridViewEx DataGridView
    {
        get;
        set;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:37:49+00:00Added an answer on May 13, 2026 at 4:37 pm

    The default implementation of the designer already takes care of the BindingNavigator and DataGridView properties. The property grid uses a combobox to let you select the control that matches the control type. You’d have to drop, say, a BindingNavigatorQ1 control on the form to get anything other than None in the combobox.

    The Type property is a tougher, you’ll need at least a TypeConverter to convert between the Type value and a string. Not so sure this ought to be a designable property, the type you want to bind to surely doesn’t yet exist at design time, only at runtime when all the assemblies are compiled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a subclass of CursorAdapter and I would like to filter my listview.
I have a subclass of UIImageView and would like to pass self as a
I have a subclass of UITableViewController that works as expected. I'd like to capture
I have a subclass of an ArrayAdapter declared like this public class ShoppingCartAdapter extends
I have subclass that inherits from a dict. On __getitem__ method I'd like to
I have a subclass of javax.swing.table.AbstractTableModel that defines table column headers like this: protected
I have a subclass of UIScrollView that I have set as the view of
I have a subclass of UITableViewController. I have code that can add/remove a UISearchBar
I have a subclass of UIImageView that I need to know when is touched.
I have a subclass of JLabel that forms a component of my GUI. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.