title: How can I get a data source's value from a data binding?
body: <p>I have a DevExpress LookupEdit (a dropdown, basically). Under certain circumstances the DataTable the LookupEdit is bound to can load a value from the database that does not appear in the list of values the LookupEdit can display. In this case the LookupEdit's EditValue property is set to DBNull when it reads from its data binding, but the value in the DataTable is preserved.</p>
  
  <p>I would like a way to get the value from the DataTable <em>using the control's DataBindings property</em>, <strong>not</strong> by referencing it directly. That is, I would like to reference it via <code>MyLookupEdit.DataBindings[0].SomethingSomething</code> rather than via <code>MyDataTable[MyLookupEditColumn]</code>. That way I can get at it in an event handler (where I'm given the calling LookupEdit) and re-use that event handler for different LookupEdits (which bind to different columns in my DataTable).</p>
  
  <p>I'd like to do something like this:</p>
  
  <pre><code>Binding bind = (sender as LookupEdit).DataBindings[0];
  DataTable table = bind.DataSource as DataTable;
  object data = table[binding.DataMemberInfo.BindingMember];
  </code></pre>
  
  <p>... but BindingMember is a string and I need a DataColumn.</p>