title: lookupedit set selection by value
body: <p>I have a lookupedit and I need to set its selection by click event of a button. But I couldnt do it.</p>
  
  <p>this is how I fill the lookupedit</p>
  
  <pre><code>using (SqlConnection conn = new SqlConnection(GlobalParameters.logoSqlConnectionString))
          {
              conn.Open();
              string selectSql = @"SELECT LOGICALREF,DEFINITION_ FROM [LG__CLCARD]";
              DataTable dtDetail = GlobalParameters.getDataTable(selectSql, GlobalParameters.logoSqlConnectionString);
              lookUpEditGeldigiFirma.Properties.DataSource= dtDetail;
              lookUpEditGeldigiFirma.Properties.DisplayMember = "DEFINITION_";
              lookUpEditGeldigiFirma.Properties.NullText = "Lütfen seçiniz.";
              lookUpEditGeldigiFirma.Properties.ValueMember = "LOGICALREF";
          }
  </code></pre>
  
  <p>my lookupedit has 3 elements like below.</p>
  
  <pre><code>value:1  text:apple
  value:2  text:orange
  value:3  text:melon
  </code></pre>
  
  <p>I tried to set the selection like below</p>
  
  <pre><code>// first attempt
  lookUpEditGeldigiFirma.EditValue = "2";
  
  // second attempt
  lookUpEditGeldigiFirma.Properties.DisplayMember = "orange";
  
  // third attempt
  lookUpEditGeldigiFirma.Properties.ValueMember = "2";
  </code></pre>
  
  <p>these attempts didnt work to set the selection in lookupedit. Please help me</p>