for (int i = 0; i < dt.Rows.Count; i++) { foreach(CheckBox chk in Chklst.Items) { if (chk.Text.IndexOf(dt.Rows[0][0].ToString()) > 0) { chk.Checked = true; } else { chk.Checked = false; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)