I would like to use enums to populate a LookupEdit column in a DevExpress grid. I've worked my way to the BuildDataTableFromEnum method and that seemed to hold the clue but I can't work out how to use it. Before spending a lot of time on this I thought I had better ask if it is even possible. If it is, do you have a code snippet I could use?
Cheers, Peter
Finally got around to doing this. I can create a data table ok and it has two columns headed Description and Value. The problem is that each column contains the enumation description (Dev0, Dev1 etc) but no enumeration value (0,1,3 etc).
My code the create the tables is:
dt = MicroFour.StrataFrame.Tools.Common.BuildDataTableFromEnum(
My code to create the enumeration is:
Dev0 = 0
Dev1 = 1
Dev2 = 2
Dev3 = 3
What elso do I need to do?