# TreeView and De-Select?

**URL:** <https://www.ruby-forum.com/t/treeview-and-de-select/79909>\
**Category:** Ruby-Gnome 2\
**Created:** [December 20, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/treeview-and-de-select/79909 "2006-12-20T17:03:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [December 20, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/treeview-and-de-select/79909/1 "2006-12-20T17:03:17Z")

</div>

Hi there,

When I select an entry in a TreeView, it highlights  
this line. Is there some way to deselect this again?

I ask because I have a use case where there is only one  
line stored in my list store, and its a bit confusing  
to have it highlighted always, without a way to  
unselect it again. (Select via left mouse button click)

Regards

“shev”

–

* * *

Paralegal Programs  
Seeking a paralegal career? Find a school near you. Get info now.  
[http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=97f43ddb2b16c228f81c2cd131ebeaf8](http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=97f43ddb2b16c228f81c2cd131ebeaf8)

Powered by Outblaze

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [December 20, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/treeview-and-de-select/79909/2 "2006-12-20T17:05:21Z")

</div>

On Tue, Dec 19, 2006 at 09:07:53PM +0100, Roebe XXX wrote:

> Hi there,
> 
> When I select an entry in a TreeView, it highlights  
> this line. Is there some way to deselect this again?

Programatically, you can do:

tv.selection.unselect\_all

> From the UI itself, you can just control + click the selected row to  
> unselect it.

-pete

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
