I'm trying to display a struct in a RadPropertyGrid (similar to the "Padding" item in the "First Look" example), but for some reason items in the struct is not displayed as an expandable item like in the "First Look" example. Instead, the value of my PropertyStoreItem is just set to a string containing namespace of my struct (see the attached screenshot). Here is the struct I'm trying to use:
Do you have any idea what I'm missing?
namespace
DSI.WorkFlow
{
struct
SearchItem
{
string
fromField;
string
toField;
[Description(
"Search value."
)]
[Category(
"Search Fields"
)]
[DefaultValue(
null
)]
[Browsable(
true
)]
public
string
FromField
{
get
{
return
this
.fromField;
}
set
{
this
.fromField = value;
}
}
[Description(
"Search value."
)]
[Category(
"Search Fields"
)]
[DefaultValue(
null
)]
[Browsable(
true
)]
public
string
ToField
{
get
{
return
this
.toField;
}
set
{
this
.toField = value;
}
}
}
}
Do you have any idea what I'm missing?