更新时间:2023-12-06 14:09:22
好吧,这不是一个好方法.我的建议是使用数据集.
我对VB语法不是很熟悉,所以要避免语法错误:
well, that is not a good way to do that. my suggesstion would be using a dataset.
I''m not very familiar with VB syntax, so spare the syntax errors :
Using datasource As new DataSet()
Using adapter As new SqlDataAdapter(cmd)
adapter.Fill(datasource)
End Using
cboOwner.DataSource = datasource.Tables[0]
cboOwner.DisplayMember = "full name"
cboOwner.ValueMember = "empID"
End Using
这样,您将不需要一会儿,您就可以实现自己的目标.
---------------------
问候
H.Maadani
This way, you wont need a while, and you will reach your goal.
---------------------
Regards
H.Maadani