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.

GGC Default Copy/Paste

Thread ID:

Created:

Updated:

Platform:

Replies:

60128 Apr 27,2007 03:13 PM Apr 30,2007 01:54 PM Windows Forms 3
loading
Tags: GridControl
Eric Weinschenk
Asked On April 27, 2007 03:13 PM

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 03:28 PM

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 11:07 AM


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 01:54 PM

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.

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.

;