Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SqlConnection conn = new SqlConnection(conStr);
- string query = "select * from products";
- SqlCommand cmd = new SqlCommand(query, conn);
- conn.Open();
- SqlDataReader rdr = cmd.ExecuteReader();
- while (rdr.Read())
- {
- comboBox3.Items.Add(rdr[0]+"-t"+rdr[1]+"-"+"Exp Datet"+rdr[4]);
- }
- conn.Close();
Add Comment
Please, Sign In to add comment