The PropertyGrid will use a ComboBoxEditor for properties of type enum.
public enum Gender
{
Male,
Female
}
_propertyGrid.SelectedObject = new MySubData()
{
FirstName = "Tom",
MyGender = Gender.Male
};
public class MySubData
{
public WpfApplication118.MainWindow.Gender MyGender
{
get;
set;
}
public string FirstName
{
get;
set;
}
}