We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

problems with copy/paste and drag/drop

Thread ID:

Created:

Updated:

Platform:

Replies:

13358 Apr 27,2004 12:46 PM UTC Apr 30,2004 07:20 PM UTC Windows Forms 2
loading
Tags: GridControl
Corinne Muir
Asked On April 27, 2004 12:46 PM UTC

hi, We have a virtual grid (implemented QueryCellInfo, QueryRowCount, QueryColCount, SaveCellInfo) using version 1.6. We implemented our own drag and drop because we needed to add new rows to the grid. (AllowDrop=true, our own handlers for DragEnter, DragDrop. The drag and drop wouldn''t work until we added the following handler for PasteCellText: private void gridControl_PasteCellText(object sender, GridPasteCellTextEventArgs e) { e.Cancel = true; } This made the drag and drop work but we can''t seem to get the copy / paste to work. It doesn''t even break inside any of these events. We tried changing the properties of this.gridControl.ControllerOptions both with the oleDataSource and oleDropTarget checked and unchecked but it didn''t appear to make a difference. We tried setting this handler but it also didn''t ever get to it: this.gridControl.ClipboardPaste += new Syncfusion.Windows.Forms.Grid.GridCutPasteEventHandler What are we doing wrong? thanks, Corinne

Administrator [Syncfusion]
Replied On April 27, 2004 03:47 PM UTC

Hi Corinne, Cancelling the PasteCellText event will not allow you to do the paste operation. Probably you should check your drag/drop implementation. Here is a forum thread where Clay posted a sample that does drag/drop which adds rows to the target grid. http://www.syncfusion.com/forums/message.asp?MessageID=11342 Regards, Jay N

Corinne Muir
Replied On April 30, 2004 07:20 PM UTC

Hi Jay, our copy/paste problem turned out to be the MDI child form was eating these events so the grid copy was never called. We changed our drag and drop to use the default grid drag and drop by implementing the GridDataObjectConsumer class. That worked great. So everything is working now.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;