DataTable dtAgencies = GetAgencies(); if (dtAgencies.Rows.Count > 0) { this.chkListChild.DataSource = dtAgencies; this.chkListChild.DisplayMember = "agencyID"; this.chkListChild.ValueMember = "conString"; DataTable dtCopy = dtAgencies.Copy(); this.cmbParent.DataSource= dtCopy; this.cmbParent.DisplayMember = "agencyID"; this.cmbParent.ValueMember = "conString"; }
if (YourComboboxName.Focused == true) { //checkbox selection-index code here }
if (YourChecklistboxName.Focused == true) { //Combobox selection-index code here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)