I have seen through Stackoverflow that there is an easy way to populate a combobox with an Enumeration:
cbTipos.DataSource = Enum.GetValues(typeof(TiposTrabajo))
Try this:
cbTipos.DisplayMember = "Description";
cbTipos.ValueMember = "Value";
cbTipos.DataSource = Enum.GetValues(typeof(TiposTrabajo))
.Cast()
.Select(value => new
{
(Attribute.GetCustomAttribute(value.GetType().GetField(value.ToString()), typeof(DescriptionAttribute)) as DescriptionAttribute).Description,
value
})
.OrderBy(item => item.value)
.ToList();
In order for this to work, all the values must have a description or you'll get a NullReference Exception. Hope that helps.