How to display a selected item in combobox that is selected from database
<p>I have a combobox with items. I want to get a value from database and show the value in the combobox as the selected item. But it should also display items.</p>

<p>I tried to use combobox.selectedvalue. But it's not working.What should I do?</p>

<pre><code>  SqlDataAdapter komut = new SqlDataAdapter("select * from Ogrenci where ogr_no= '" +
            Convert.ToInt32(a) + "' ", baglanti);

        DataTable dt = new DataTable();
        komut.Fill(dt);
        DataRow drw1 = dt.Rows[0];
        string ogretim = drw1["ogretim"].ToString();
        //comboBox7.SelectedItem = comboBox7.FindString(ogretim);
        comboBox7.SelectedValue = ogretim;
</code></pre>
