private void cboStartAccName_SelectedIndexChanged(object sender, EventArgs e) { if (cboStartAccName.SelectedValue != null) { FillControl.FillEndPeriodList(cboEndAccName, cboStartAccName.SelectedValue.ToString()); } else { cboEndAccName.DataSource = null; } cboEndAccName.DroppedDown = true; }