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.

Cut, copy and paste static cells

Thread ID:

Created:

Updated:

Platform:

Replies:

53412 Dec 13,2006 07:50 AM Dec 14,2006 06:50 AM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 13, 2006 07:50 AM

Hi, i want to copy, cut and paste selections of static cells, and i want to do it using ctrl+x, ctrl+c and ctrl+v, how can i do it (VB.net)???

Thanks,
Surti.

Administrator [Syncfusion]
Replied On December 13, 2006 07:52 AM

Sorry, i'm using GridControl.

Administrator [Syncfusion]
Replied On December 14, 2006 03:38 AM

Hi Surti,

To enable the clipboard operation(cut/copy/paste) on static cell, you need to handle the TableModel.ClipboardCanXXX event and allow this case. Here is a code snippet.

private void TableModel_ClipboardCanCopy(object sender, GridCutPasteEventArgs e)
{
e.IgnoreCurrentCell = false;
e.Result = true;
e.Handled = true;
}

Here is a sample.
GGCStaticCopyCutPaste.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 14, 2006 05:44 AM

Sorry, but is for a GridControl in VB, do you have this example for this???

Thanks,
Surti

>Hi Surti,

To enable the clipboard operation(cut/copy/paste) on static cell, you need to handle the TableModel.ClipboardCanXXX event and allow this case. Here is a code snippet.

private void TableModel_ClipboardCanCopy(object sender, GridCutPasteEventArgs e)
{
e.IgnoreCurrentCell = false;
e.Result = true;
e.Handled = true;
}

Here is a sample.
GGCStaticCopyCutPaste.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On December 14, 2006 06:50 AM

Hi Surti,

Please try the attached sample and let me know if you are looking something different.
StaticCellCopyPaste.zip

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.

;