Hi

I am using Treeview with checkBox for all Nodes..

i want to change the childNodes checkBox status according to the checkbox status of the Parent node..

for that i have used this method OnTreeNodeCheckChanged="DynamicTreeview_TreeNodeCheckChanged" in the aspx page..

and in the codeBehind..

//DyanamicTreeview is the object of Treeviewcontrol

protected void DynamicTreeview_TreeNodeCheckChanged(object sender, TreeNodeEventArgs e)
{

if (DynamicTreeview.SelectedNode.Checked == true)
{
int SelectedChild = DynamicTreeview.SelectedNode.ChildNodes.Count;
for (int scNode = 0; scNode < SelectedChild; scNode++)
{
DynamicTreeview.SelectedNode.ChildNodes[scNode].Checked = true;
}
}
else
{
int SelectedChild = DynamicTreeview.SelectedNode.ChildNodes.Count;
for (int scNode = 0; scNode < SelectedChild; scNode++)
{
DynamicTreeview.SelectedNode.ChildNodes[scNode].Checked = false;
}
}

}

like this i am changing the checkbox status..

The problem is when i click the check box of the parent node
there is no action
but when i click the parentnode text .. the childnode's checkboxe's status changing according to the parent node checkbox's status..

but i want to change the status of the childnodes checkbox according to the parentnode checkbox status while clicking the checkbox of the treeview control...

pls help me..
waiting for ur valuable response..
veeresh