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

Cut, copy and paste static cells

Thread ID:

Created:

Updated:

Platform:

Replies:

53412 Dec 13,2006 12:50 PM UTC Dec 14,2006 11:50 AM UTC WinForms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 13, 2006 12:50 PM UTC

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 12:52 PM UTC

Sorry, i'm using GridControl.

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

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 10:44 AM UTC

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 11:50 AM UTC

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.

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

;