# Treeview conditional drag and drop

**URL:** <https://www.ruby-forum.com/t/treeview-conditional-drag-and-drop/111854>\
**Category:** Ruby-Gnome 2\
**Created:** [August 12, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/treeview-conditional-drag-and-drop/111854 "2007-08-12T12:10:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Cabrera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Antonio\_Cabrera](https://www.ruby-forum.com/u/Antonio_Cabrera)\
**Post date:** [August 12, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/treeview-conditional-drag-and-drop/111854/1 "2007-08-12T12:10:24Z")

</div>

Hi,

Could anyone put an example of how to make conditional drag and drop in  
a  
treeview,  
for example, to not permit move of a row in certain conditions?

I have tried to work with GtkDragDest and drop\_possible, but I can’t put  
it  
to work.

Thank you very much  
Antonio Cabrera
