Cut, copy and paste static cells

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.

4 Replies

AD Administrator Syncfusion Team December 13, 2006 12:52 PM UTC

Sorry, i'm using GridControl.


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon