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
If you want to be able to populate a column with the integer value, you can use the CreateDataTableFromEnum method and add an extra column, say "ValueInt", to the table, cycle through the rows, and set the integer value. Then you'll just have to change the ValueMember of the control to "ValueInt", not "value".