This is a migrated thread and some comments may be shown as answers.

[Solved] Binding DropDownColumn with Enum property

0 Answers 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allin
Top achievements
Rank 1
Allin asked on 16 Jul 2013, 01:59 PM
Hi,

I trying to bind a dropDownColumn to a class property as Enum and the value in itemDataBound always nbsp. When i bind with BoundColumn it's ok, i see the value of the enum.

If i change the class property to integer, the dropDownColumn displayed correctly, but i want to keep the class property as enum.  

Any workaround for this?

'Do not work
Public class XYZ
    Public Property Status as StatusEnum
End Class
 
Public Enum StatusEnum as Integer
    Enabled = 0
    Disabled = 1
End Enum
 
'Work
Public class XYZ
    Public Property Status as Integer
End Class

ty

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Allin
Top achievements
Rank 1
Share this question
or