Hi Arun,
Please hightlight the solution.
Thanks
Satish
>Hi Arun,
>I just spoke to Seash. I made document what Seash whats in the TreeView.
>Please find the document.
>Thanks
>Satish
>
>>Hi Seash
>>
>>Here is a code snippet that demonstrates how when you right click on a node in a TreeViewAdv control and if it is not a top level node, it''s child nodes are collapsed:
>>
>>private void treeViewAdv1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
>>{
>> if ((e.Button == MouseButtons.Right)&& (this.treeViewAdv1.SelectedNode.Level!=1))
>> {
>> if ((this.treeViewAdv1.SelectedNode.HasChildren))
>> {
>> this.treeViewAdv1.SelectedNode.CollapseAll();
>> }
>> else
>> {
>> MessageBox.Show("The selected node has no child nodes");
>> }
>> }
>>}
>>
>>This should give you an idea to do what you are seeking.
>>
>>Regards
>>Arun
>>
>
>
TreeError_4660.zip
>
>