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

Paste Event in GridGroupingControl

Thread ID:





58995 Apr 3,2007 06:53 AM UTC Apr 3,2007 03:32 PM UTC WinForms 1
Tags: GridControl
Uli Jung
Asked On April 3, 2007 06:53 AM UTC


I'm looking for a way to get informed when one or several rows are pasted into a GridGroupingControl. I can't find an event that is fired during or after the paste operation.

Any suggestions?

Thanks in advance.

haneefm [Syncfusion]
Replied On April 3, 2007 03:32 PM UTC

Hi Uli,

You can try using the PasteCelltext event. The PasteCelltext event is raised cell by cell as the text is being pasted. You can validate the text before grid tries to do the past on that cell. You have the option of canceling the single cell paste or cancelly the rest of the paste as well.

If you want to see the PasteCellText event raised then turn off the support for copying styles (allowing only text to be pasted and PasteCellText to be hit). To turn off style copy/paste support in a grid, turn off this flag.

this.grid.TableModel.CutPaste.ClipboardFlags &= ~GridDragDropFlags.Styles;
this.gridGroupingControl1.TableModel.PasteCellText += new GridPasteCellTextEventHandler(TableModel_PasteCellText);

void TableModel_PasteCellText(object sender, GridPasteCellTextEventArgs e)
//try setting e.Cancel to TRUE for the invalid entries

Ans also you can handle the ClipboardPaste event of the grid to customize your pasting. Please refer the following forum thread for implementation.

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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