Hi Patrick,
Please refer to the
test sample attached here that shows how you could accomplish the above by handling the TreeViewAdv''s MouseDown event as shown below :
private void treeViewAdv1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
// get the point where the mouse was right clicked
Point p = this.treeViewAdv1.PointToClient(Control.MousePosition);
// get the node at the right click point
TreeNodeAdv node = this.treeViewAdv1.PointToNode(p);
// set the newly selected node
this.treeViewAdv1.SelectedNode = node;
}
}
Let me know if this works for you.
Regards,
Guru Patwal
Syncfusion, Inc.