private void cbJobCode_SelectedIndexChanged(object sender, EventArgs e) { string name = cbJobCode.Text; cbAccount.DisplayMember = "Name"; cbAccount.ValueMember = "ID"; cbAccount.DataSource = clientName.GetClientNameWithJobCode(name); dt.Clear(); dt = endDate.GetEndDateWithJobCode(name); deadline = endDate.ConvertDataTableToString(dt); txtDeadline.Text = deadline; }