here is the code
CODE
SqlConnection con = new SqlConnection(sqlcan);
con.Open();
SqlCommand com = new SqlCommand("select code from data2", con);
SqlDataAdapter ad = new SqlDataAdapter(com);
DataSet ds = new DataSet();
ad.Fill(ds);
comboBox2.DataSource = ds.Tables[0].ToString();
im having error
" Complex Data Binding accepts as a data source either an IList or an IListSource "