may be you are asking this
SqlConnection con = new SqlConnection("<connectionstring>");
SqlDataAdapter ad;
DataTable dt = new DataTable();
ad = new SqlDataAdapter("select Rollno from Student",con);
ad.Fill(dt);
comboBox1.DataSource=dt;
comboBox1.DisplayMember="Rollno";
comboBox1.ValueMember="Rollno";
</connectionstring>