Home Forums WinForms controls Xceed Grid for WinForms displaying enum in grid Reply To: displaying enum in grid

User (Old forums)
Member
Post count: 23064

I haven’t tested this code, but I found it on The Code Project:

Array values = Enum.GetValues(typeof(Example)); // Example is the enum-type here
combo.DataSource = values;

http://www.thecodeproject.com/csharp/EnumDataSource.asp?msg=883690#xx883690xx

Imported from legacy forums. Posted by Tommy (had 265 views)