'DevExpress PropertyGrid use a ComboBox / LookUp Edit (Attribute Level)
im trying to setup a Propertygrid, everything works, even Enums are displayed correctly. But our binded object, has a property which is a Ref to a Dictionary(DB).
[PropertyGridTab("docuaccount"), Category("Konfiguration"), ResourceDescription(""), ResourceDisplayName("#frm402_Konfiguration_Accounting_05")]
public int DefaultRefLeistungSortierung
{
get { return _DefaultRefLeistungSortierung; }
set
{
if (_DefaultRefLeistungSortierung != value)
{
_DefaultRefLeistungSortierung = value;
}
}
}
this is such a field, its just an INT, but i basicly want to be able perferably with Attributes to say, this int is bound to this Collection. And make the PropertyGrid create a ComboBox with these Items and use the INT as selectedIndex.
Is there a way to do this? Preferably with Attributes?
Im Struggling as i dont see a way to differentiate at Attribute Level
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
