How do you bind a combobox to a Database and show values from an enum, or is this the right approach?
<p>I have some comboboxes on a WinForm that have been populated by an enum:</p>

<pre><code>enum valueGenTypes
    {
        None = 0, Prefix = 1, All = 2, Abbreviation = 3, Number = 4
    }
</code></pre>

<p>I have one combobox that is Bound to a field in the database that is a value of 0-4.</p>

<p>I've wired up the combobox datasource to the enum:</p>

<pre><code>valGenTypeID.Properties.DataSource = Enum.GetValues(typeof(valueGenTypes));
</code></pre>

<p>I get a drop down of the values, however, they don't save or reflect what is in the database.
Forgive me if this sounds dumb, but so far it looks like I can only have the drop down linked to the enum or the DB individually(with predefined values in the combobox).</p>

<p>Is there a way to bridge the relationship between:</p>

<p>DBField = 0</p>

<p>ComboBox displays = "None"</p>

<p>Should I be using an enum, or is this even the right approach?</p>

<p>Thanks,</p>
