hi guys, I have a combobox in which iam loading combobox using following code.
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;
}
Problem is in pCmbCustomer.DataSource = ds.Tables[0];selected indexchanged event of combobox is working.how can i avoid selected indexchanged event while binding combobox?Can anybody help?