How to retain the Text entered by the user after binding the data to ComboBox
<p>I am developing a Autosearch Combobox in .NET 1.1 .The requirement is when user enters search value in combobox, the corresponding values from database should be binded to combobox.The binding works fine with my code but it clears the text entered by user.</p>

<p>Is there any way to retain the text entered by the user after binding the datasource to combobox?</p>

<pre><code>DataView dvproduct=dtproduct.DefaultView;
string enteredtext= cboProductCode.Text;
if(cboProductCode.Text!=string.Empty)
{
    dvproduct.RowFilter="PLL_LIST_PROD_CD Like '" + cboProductCode.Text + "%'";
    if(dvproduct.Count&gt;0)   
    {
        cboProductCode.DataSource=dvproduct;
        dvproduct.Sort="PLL_LIST_PROD_CD";
        cboProductCode.DisplayMember="PLL_LIST_PROD_CD";
        cboProductCode.ValueMember="PROD_PROD_DESCR_LOCAL";
        cboProductCode.Text=enteredtext;
    }
}
</code></pre>

<p>Please help me to solve the issue.</p>
