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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Copy Paste of rows

Thread ID:





1288 Oct 11,2002 04:58 AM UTC Oct 14,2002 06:21 AM UTC WinForms 1
Tags: GridControl
Raphael Eschmann
Asked On October 11, 2002 04:58 AM UTC

Hi, I would like to copy and paste entire rows.(text and style), I try this: GridControl1.CutPaste.CopyRange(GridRangeInfo.Rows(6, 6)) 'Do a selection of a blank row GridControl1.Selections.Add(GridRangeInfo.Rows(7, 7)) GridControl1.CutPaste.Paste() When I ask the function "CanPaste", it returns TRUE But doesn't work... What's wrong Thanks

Administrator [Syncfusion]
Replied On October 14, 2002 06:21 AM UTC

There appears to be a problem with the copy code recognizing a row range. We will look into this and get it corrected. In the meantime, I think your code will work OK if you use a cell range for the row, something like this: int row = 2; this.gridControl1.CutPaste.CopyRange(GridRangeInfo.Cells(row, 1, row, this.gridControl1.ColCount)); this.gridControl1.Selections.Clear(); this.gridControl1.Selections.Add(GridRangeInfo.Row(3)); this.gridControl1.CutPaste.Paste();


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

Live Chat Icon For mobile
Live Chat Icon