因此,当用户单击组合框中的customersID 时,我的组合框用于填充数据网格视图,它将弹出网格。我有用于填充的代码,但问题是它们的组合框不会自行重置。它仍然显示选择的当前值。我想知道在选择索引事件后重置组合框是可能的。下面的代码是我如何得到我的组合框。
' after a command and connection was made
customerAdapt = New SqlDataAdapter(customerQuery,con)
customerSet = New DataSet
customerAdapt.Fill(customerSet)
customerCb.DataSource = adoAddtRs.tables(0)
customerCb.DisplayMember = "custID"
customerCb.ValueMember = "custID"
customerCb.Visible = False
customerCb.DropDownStyle = ComboBoxStyle.DropDownList