Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Grid Tech Support » BoundGridControl with custom Drag and Drop - problems caused by Column Headers Collapse All
Subject Author Date
Mark Veitch Nov 23, 2010 - 8:39 AM

I have a MDI form application that allows me to populate multiple BoundGridControls from the same source with different data depending on user selections.  Each grid is in it’s own form.  Each form is in a dockable panel using a third party DLL.


I can open up multiple instances of the datagrid and can dock these forms or have them as floating forms.  


I can successfully drag and drop (D&D) rows within a grid and can also D&D them between seperate grids regardless of their docked state.  It currently allows single rows or multi selected rows and both work successfully.


However, when I perfom the D&D across the grids column headers (e.g. one grid is docked within my parent form above another grid) then as soon as the DragLeave event fires as it hits the column header, the cursor turns to an illegal action cursor and remains that way until the D&D enters back into the source grid.  Unfortunately at that time the D&D events seem to have been killed.  This includes those in other instances of grids and in effect we can no longer perform any D&Ds.  


I can only assume that something like the AllowDrop property of the column headers row is interupting our event subscriptions.


As we do not require the ability to re-order columns or D&D into/from them is there anything we can do to stop it killking our D&D actions?


We set our column headers dynamically and at that point I have tried setting various properties but none make any productive difference.


 



ctlOveriddenElegantGrid1.Columns.AddRange(columns);



//ctlOveriddenElegantGrid1.Columns.GridControl.AllowColumnResizing = false;

 


//ctlOveriddenElegantGrid1.Columns.GridControl.AllowDraggingOffColumns = false;

 


//ctlOveriddenElegantGrid1.Columns.GridControl.AllowDrop = false;

 


 


Many thanks for any help.    


//ctlOveriddenElegantGrid1.AllowDrop = false; 

Technical Support Nov 29, 2010 - 4:45 AM

Could you send us a test project that illustrates the issue? We assume you are using v.1.3.

Thank you.

Technical Support Nov 24, 2010 - 9:01 AM

Thank you for the bug report. We are investigating the problem right now and will contact you back about this as soon as possible (within two days).