Object binding a public enum property to a combobox

I'm trying to use object binding in a vs2005 c# app - which works fine in general. However, i have a situation where one of the public properties of a class is an enum, which i would like to use a combobox to display the available options. Unfortunately, the bound winforms control only displays the default (first entry) in the enum and none of the others.

Is there a way to have the combobox display all options - similar to the following: combobox.datasource = Enum.GetNames(typeof(PersonStatus)); -  with an existing object setting the list index to the correct value for that instance?

Class and enum definitions as follows:

public enum PersonStatus
{
     Active = 0,
     Inactive = 1,
     Deceased = 2
}

public class Person
{
     private string m_Firstname;
     private string m_Surname;
     private PersonStatus m_Status;

     public Person()
     {
     }

     public Firstname
     {
          get { return m_Firstname; }
          set { m_Firstname = value; }
     }

     public Surname
     {
          get { return m_Surname; }
          set { m_Surname = value; }
     }

     public Status
     {
          get { return m_Status; }
          set { m_Status = value; }
     }    
}


Any insight would be greatly appreciated.
drabaecusAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

devsolnsCommented:
Take a look at this and see if this adds any benefit.  

http://msdn2.microsoft.com/en-us/library/y0wfd4yz.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
drabaecusAuthor Commented:
Well, that wasn't exactly what i was after but it lead me to combine what the wizard provides with the manual setting of the datasource which appears to have done the trick.

i.e. i used the wizard to create object binding to winforms controls, using a combo box for the enum property then in the form constuctor set the datasource of the combo box using: combobox.datasource = Enum.GetNames(typeof(PersonStatus));

devsolnsCommented:
nice.  take care.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.