title: How to retrieve TcxDBLookupComboBox selected value?
body: <p>I have a DevExpress TcxDBLookupComboBox v12.1.5 with:</p>
  
  <p>DataBinding.Datafile -> integer field
  DataBinding.DataSource -> dbisam table</p>
  
  <p>DropDownListStyle -> lsEditList</p>
  
  <p>ImmediatePost -> true</p>
  
  <p>ListFieldIndex -> 1
  ListFieldNames -> itemcode; itemname</p>
  
  <p>Item Code is a integer field, that I want to be retrieved to the connected dataset. However I want to search on the drop down list by the item's name</p>
  
  <p>That is working, due the ListFieldINdex, however when I select the item on the drop down list it retrieve the itemcode and display the itemname on the edit box. That is not what I need. </p>
  
  <p>I know I can change the DisplayValue using the OnValidate Event of the component, however I cant find how to retrieve the selected itemcode from the dropdownlist. Using the connected dataset field always return 0. ImmediatePost is not changing anything on the field. I am retrieving fields from the dataset using the FieldByName property.</p>
  
  <p>How can i get the itemcode seleted to pass to the DisplayValue on the OnValidate? </p>
  
  <p>Is there a better way to do this?</p>
  
  <p>UPDATE:</p>
  
  <p>I am now using the SyncMode, and by that I can easily get the itemcode from the record selected.</p>
  
  <p>However I could not make the control work the way I need:</p>
  
  <ul>
  <li>to enter the itemcode directly for direct access</li>
  <li>to open the lookup for itemname search</li>
  <li>display the ItemCode when the I find the search by itemname and the lookup list get closed</li>
  </ul>