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.
Unfortunately, activation email could not send to your email. Please try again.

GGC 4.102.0.4 only copies the first cell in a selected range

Thread ID:

Created:

Updated:

Platform:

Replies:

38604 Dec 15,2005 09:48 AM Dec 15,2005 12:25 PM Windows Forms 7
loading
Tags: GridControl
Jay Mooney
Asked On December 15, 2005 09:48 AM

I installed the beta yesterday. My grid grouping control (3.302.0.15) used to allow me to select a range of rows from the master table, then use the CTRL-C to copy the contents of this range to the clipboard. But the new ggc only brings the first selected cell to the clipboard. Are there new settings that control this? or did I find a defect in the beta?

Administrator [Syncfusion]
Replied On December 15, 2005 11:15 AM

The only copy support currently available in GridGroupingControl is the support inherited from GridControlBase. But there are 2 types of selection support, one specific to GridGroupingControl and the other inherited from GridControlBase. So, if you want to use the inheroed copy support, you must also use the inherited selection support. Here is a little sample shoingthe property settings for noth type of selection support. In the inherited support, you can copy multiple rows to the textbox on the form. In the selection support specific to GridGroupingControl, you only get the first cell. http://www.syncfusion.com/Support/user/uploads/GGC_Copy_dc20c1ef.zip

Jay Mooney
Replied On December 15, 2005 11:53 AM

>The only copy support currently available in GridGroupingControl is the support inherited from GridControlBase. > >But there are 2 types of selection support, one specific to GridGroupingControl and the other inherited from GridControlBase. > >So, if you want to use the inheroed copy support, you must also use the inherited selection support. Here is a little sample shoingthe property settings for noth type of selection support. In the inherited support, you can copy multiple rows to the textbox on the form. In the selection support specific to GridGroupingControl, you only get the first cell. > >http://www.syncfusion.com/Support/user/uploads/GGC_Copy_dc20c1ef.zip > >

Jay Mooney
Replied On December 15, 2005 11:54 AM

I am using those settings, and in version 3.3 I was able to copy a range of cells. However, once I installed the 4.102.0.4 assemblies it limited me to copying the contents of the current cell.

Jay Mooney
Replied On December 15, 2005 12:06 PM

I tried this: this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any; Then I tried this: this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.None; this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any; Both give me the contents of the CurrentCell. Neither give me a larger range. >Exactly what settings are you using? > >I see exactly the same behavior in 3.3 and 4.1 in the sample I uploaded. Using setting 1, I only get one cell copied. Using setting 2, I get multiple cells copied. This works the same for me whetehr I link to 3.3 or 4.1. > >If you want to copy multiple cells, then you need to set the properties as in setting 2 within the sample.

Jay Mooney
Replied On December 15, 2005 12:09 PM

I tried both, but got the same results. >Exactly what settings are you using? > >I see exactly the same behavior in 3.3 and 4.1 in the sample I uploaded. Using setting 1, I only get one cell copied. Using setting 2, I get multiple cells copied. This works the same for me whetehr I link to 3.3 or 4.1. > >If you want to copy multiple cells, then you need to set the properties as in setting 2 within the sample.

Jay Mooney
Replied On December 15, 2005 12:16 PM

I found it. Setting ActivateCurrentCellBehavior to GridCellActivateAction.SelectAll after setting the AllowSelection flag causes the problem. I commented out that line and got the contents of my selection copied to the clipboard.

Administrator [Syncfusion]
Replied On December 15, 2005 12:25 PM

Exactly what settings are you using? I see exactly the same behavior in 3.3 and 4.1 in the sample I uploaded. Using setting 1, I only get one cell copied. Using setting 2, I get multiple cells copied. This works the same for me whetehr I link to 3.3 or 4.1. If you want to copy multiple cells, then you need to set the properties as in setting 2 within the sample.

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.

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.

;