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


Thread ID:





37186 Nov 17,2005 07:56 AM UTC Nov 17,2005 10:29 AM UTC WinForms 1
Tags: GridControl
Asked On November 17, 2005 07:56 AM UTC

Hi I''ve one GGC with Parent-Child table relations. I want to copy multiple selected rows with its child tables and i want to paste those records to the selected row to be copied.Now for single row copying is working for parent table.But for child table if i select 1 row for copy and press Copy buton it''s getting copied but when i press paste button to paste thet row,2 rows are getting pasted.One row is the selected one & the other is from some other parent table.So please give me some solution for this thanks Prethi

Administrator [Syncfusion]
Replied On November 17, 2005 10:29 AM UTC

There is no general support for copy/paste in the GridGroupingControl yet. Copying and pasting data into a GridGroupingControl with parent-child relations is not straight forward. Here are some of the problems you will have to code through. What happens to primary keys that cannot appear twice in teh same table? What happens when you paste a record into a table with values that do not conform with the parent child constraint? So, if you want to code this support, you can catch the Copy by subscribing to the Model.ClipboardCopy event for each TableControl in your nested data. this.gridGroupingControl1.GetTableControl("ParentTable").Model.ClipboardCopy += new GridCutPasteEventHandler(Model_ClipboardCopy); this.gridGroupingControl1.GetTableControl("ChildTable").Model.ClipboardCopy += new GridCutPasteEventHandler(Model_ClipboardCopy); this.gridGroupingControl1.GetTableControl("GrandChildTable").Model.ClipboardCopy += new GridCutPasteEventHandler(Model_ClipboardCopy); There, you can get the Table.SelectedRecords for each of your tables and put them on the Clipboard. To handle the paste, you would do something similar using the Model.ClipboardPaste event. (But you would have to enforce the constraint impose by your datasource at this point).


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

or the page will be automatically redirected to 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