or
public
class
TestComboBox : RadDropDownList
{
public
override
string
ThemeClassName
{
get
{
return
typeof
(RadDropDownList).FullName;
}
set
{
base
.ThemeClassName = value;
}
}
protected
override
RadDropDownListElement CreateDropDownListElement()
{
//return base.CreateDropDownListElement();
return
new
TestElement(
this
);
}
}
public
class
TestElement : RadDropDownListElement
{
public
TestElement()
{
//
}
public
TestElement(
object
owner)
:
base
(owner)
{
//
}
}
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() { }
}
}