954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Adding a combo box to a property grid

Hi

i need to add a combo box to a property grid that can be populated with the result of an sql statement, i can more than likely populate it when i come to it but i have no idea how to add the combo box.

Currently i am creating the items in my property grid which just need to be a textfield like so:

private int _objTypeID;

        [CategoryAttribute("Object State Defaults"), DescriptionAttribute("Object type ID")]        
        public int ObjectTypeID
        {
            get
            {
                return _objTypeID;
            }
            set
            {
                _objTypeID = value;
            }
        }


But i have no idea how to add combo boxes to it.
Any help is much appreciated.

Thanks in advanced

Chris

ChrisHunter
Posting Whiz in Training
276 posts since Feb 2011
Reputation Points: 36
Solved Threads: 28
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: