I have to store on one DataColum of one DataTable an Enum containing some values. The enum is defined as follow:
Imports System.ComponentModel
Imports System.Globalization
Public Enum FirmwareUpdateStatus
<Description("updateNotExecuted")> UpdateNotExecuted = 0
<Description("updateSuccess")> UpdateSuccess = 1
<Description("updateError")> UpdateError = 2
End Enum
I have also a class called Enum2 that has a method called GetDescription that returns the localized text of an enum value. What I want to do is to show this text into the grid that shows the DataTable but storing the enum value, not the string.