首页 > 代码库 > [转]如何在数据绑定时不让combox控件触发SelectedIndexChanged事件

[转]如何在数据绑定时不让combox控件触发SelectedIndexChanged事件

    this.cboVendor.SelectedIndexChanged -= new System.EventHandler(this.cboVendor_SelectedIndexChanged);                     cboVendor.DataSource =  myClass.RunQueryCmd(strSqlCmd);            cboVendor.DisplayMember = "SupplierCode";             //添加事件         this.cboVendor.SelectedIndexChanged += new System.EventHandler(this.cboVendor_SelectedIndexChanged);