01.
sqlstr =
"select * from package"
;
02.
comm =
new
SqlCommand(sqlstr, conn);
03.
da.SelectCommand = comm;
04.
da.Fill(ds,
"tmp"
);
05.
06.
comboBox1.DataSource = ds.Tables[
"tmp"
];
07.
comboBox1.DisplayMember =
"pack_name"
;
08.
comboBox1.ValueMember =
"pack_id"
;
09.
comboBox1.SelectedIndex = 0;