DataTable dt = ds1.Tables[0]; foreach (TreeNode node in TreeViewArticleCatagory.Nodes) { foreach (DataRow dr in dt.Rows) { if (Convert.ToString(dr["Item"]) == node.Value) { node.Checked = true; //TreeViewArticleCatagory.SelectedNode.Checked = true; } } }
node.Nodes
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)