If a property grid combo editor is double clicked to start an edit the value will cycle through the available values.
Here is a really simple code example for this. If you just double click to start the edit on the MyEnum field you will notice that the value will keep changing every time you start the edit.
Here is a really simple code example for this. If you just double click to start the edit on the MyEnum field you will notice that the value will keep changing every time you start the edit.
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
PropertyGridTest
{
public
partial
class
Form1 : Form
{
MyObject theObject =
new
MyObject();
public
Form1()
{
InitializeComponent();
theObject.MyEnum = MyEnum.One;
theObject.Name =
"test"
;
radPropertyGrid1.SelectedObject = theObject;
}
}
public
enum
MyEnum { One, Two, Three, Four, Five };
public
class
MyObject
{
public
string
Name {
get
;
set
; }
public
MyEnum MyEnum {
get
;
set
; }
public
MyObject() { }
}
}