AD
Administrator
Syncfusion Team
September 1, 2004 09:58 AM UTC
The grid uses a mouse controller architecture to control cursors. There are two ways you can change the cursor. One is to implement your own mouse controller, and the other is to derive the grid, and override OnSetCursor. Here is a forum thread that has samples for both techniques.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=8551
But since you want to handle a D&D cursor, you have another option. That option is to tie into the grid''s default D&D support by having your dataobject implement IGridDataObjectConsumer. Here is a forum thread that includes a sample that drops a treenode onto a grid using a IGridDataObjectConsumer implmentation.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=5467
AD
Administrator
Syncfusion Team
September 1, 2004 10:00 AM UTC
Oh, one other thing. You existing code may work if you turn off the grid''d default support for D&D.
grid.Model.Options.ControllerOptions = grid.Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget;
AC
Andrew Cross
September 1, 2004 10:32 AM UTC
Cheers
Turning the grids D&D support off worked
Many Thanks
Andy
>Oh, one other thing. You existing code may work if you turn off the grid''d default support for D&D.
>
>grid.Model.Options.ControllerOptions = grid.Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget;
>