我有一個組合框,其中IAM使用下面的代碼加載組合框。關注selectedindexchanged下拉列表
public void LoadCustomer1(ComboBox pCmbCustomer)
{
obj._dtInputParameter.Clear();
obj.AddInputParameter("@Prm_OpFlag", "S", "String", 1);
//obj.strSPName = "prc_CUST_Details";
obj.strSPName = "EditCustCombo";
DataSet ds = obj.SqlExecuteFill();
pCmbCustomer.DataSource = ds.Tables[0];
pCmbCustomer.DisplayMember = "CustomerId";
pCmbCustomer.ValueMember = "CustomerId";
pCmbCustomer.Text = "--- Select Customer Id ---";
pCmbCustomer.SelectedIndex = 0;
}
問題是在pCmbCustomer.DataSource = ds.Tables [0];組合框的選擇indexchanged事件爲i working.how可避免選擇indexchanged事件而結合組合框任何人可以幫助?
你能詳細說明你的問題嗎?你如何處理你的selectedIndexChanged事件? – anonymous 2009-12-22 11:29:48