Home - Forums-.NET - FlyGrid.Net (Windows Forms) - TodoStyledList with dragdrop

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

TodoStyledList with dragdrop
Link Posted: 06-Feb-2006 22:02
I've got a problem with making drag'n'drop in TreeListView form - DragEnter does not fires

is it enought to add :

AddHandler todoList.DragDrop, New System.Windows.Forms.DragEventHandler(AddressOf Me.grid_DragDrop)
            AddHandler todoList.DragEnter, New System.Windows.Forms.DragEventHandler(AddressOf Me.grid_DragEnter)
            AddHandler todoList.DragOver, New System.Windows.Forms.DragEventHandler(AddressOf Me.grid_DragOver)
            AddHandler todoList.DragLeave, New System.EventHandler(AddressOf Me.grid_DragLeave)


and DragDrop, DragEnter, DragOver , DragLeave, DragAccepted subs
to get drag'n'drop working in TreeListView sample
Link Posted: 06-Feb-2006 22:36
Did you set FlyGrid.AllowDrop to True?
Link Posted: 06-Feb-2006 22:46
yes, i've set in that way:

Me.todoList.AllowDrop = True
Link Posted: 06-Feb-2006 23:21
Please include also NineRays.Windows.Forms.Data.RowsOptions.Moveable option to the Me.todoList.Rows.Options:

'this setting enables drag nodes
Me.todoList.Rows.Options = Me.todoList.Rows.Options Or NineRays.Windows.Forms.Data.RowsOptions.Moveable
'this setting allows dropping nodes on todoList
Me.todoList.AllowDrop = True
'connect to event handlers : todoList.DragDrop, todoList.DragEnter, todoList.DragOver, todoList.DragLeave
'.....