We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide text section in treeviewAdv node

Thread ID:





69651 Nov 6,2007 05:46 PM UTC Nov 7,2007 09:13 PM UTC WinForms 1
Tags: Tools
Ariel Saleh
Asked On November 6, 2007 05:46 PM UTC


Is it possible to hide the text section of a node in the treeviewAdv control?
All of the nodes in my tree have a custom control and I don't need any text. String.Empty does not work (a thin bar appears every time the node is selected).
I also wonder if is it possible to start an item drag from the custom control of the node and not from the text.
Thanks a lot.

J.Nagarajan [Syncfusion]
Replied On November 7, 2007 09:13 PM UTC

Hi Ariel ,

If your intention is to prevent the node selection of TreeViewAdv control then you can handle BeforeSelect event. Please refer to the following code snippet.


this.treeViewAdv1.BeforeSelect += new Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeSelectEventHandler(this.treeViewAdv1_BeforeSelect);
private void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
args.Cancel = true;

Please use the above code snippet and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon