string category = dgEntry.CurrentRow.Cells[8].Value.ToString(); string[] strCat = category.Split(','); int length = strCat.Length; for (int i = 0; i < length ; i++) { string fetch = strCat[i]; foreach (object item in clbEntry_IndividualItems.Items) { DataRowView row = item as DataRowView; if (row[0].ToString() == strCat[i].ToString()) { clbEntry_IndividualItems.SetItemChecked(i, true); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)