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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Default Copy/Paste

Thread ID:

Created:

Updated:

Platform:

Replies:

60128 Apr 27,2007 07:13 PM UTC Apr 30,2007 05:54 PM UTC WinForms 3
loading
Tags: GridControl
Eric Weinschenk
Asked On April 27, 2007 07:13 PM UTC

Hi, i'm just trying to turn on whatever out of the box functionality exists for copying to the clipboard on the GridGroupingControl.

I don't need to paste into the grid at all, just copy out so the user can past into excel.

What is the least amount of code I have to write to turn on Copy.

haneefm [Syncfusion]
Replied On April 27, 2007 07:28 PM UTC

Hi Eric,

One way you can do this by handling the ClipboardPaste event from the GridTableModel and set the e.Handled to true for cancelling paste operation in a grid cell. Here is a code snippet

this.grid.TableModel.ClipboardPaste +=new GridCutPasteEventHandler(Model_ClipboardPaste);

private void Model_ClipboardPaste(object sender, GridCutPasteEventArgs e)
{ e.Handled = true;}

Best regards,
Haneef

Eric Weinschenk
Replied On April 30, 2007 03:07 PM UTC


Haneef,

The question isn't how to turn off Paste. The question is how to turn ON copy.

Eric

>Hi Eric,

One way you can do this by handling the ClipboardPaste event from the GridTableModel and set the e.Handled to true for cancelling paste operation in a grid cell. Here is a code snippet

this.grid.TableModel.ClipboardPaste +=new GridCutPasteEventHandler(Model_ClipboardPaste);

private void Model_ClipboardPaste(object sender, GridCutPasteEventArgs e)
{ e.Handled = true;}

Best regards,
Haneef

haneefm [Syncfusion]
Replied On April 30, 2007 05:54 PM UTC

Hi Eric,

If you want to turn on the copy/paste support in a grid, you need to set the ClipboardFlags.

this.grid.TableModel.CutPaste.ClipboardFlags = GridDragDropFlags.Styles;

Please refer the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=58995

Best regards,
Haneef

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

;