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.

Copying GroupingGrids

Thread ID:

Created:

Updated:

Platform:

Replies:

73248 Apr 25,2008 07:26 PM May 9,2008 07:15 PM Windows Forms 1
loading
Tags: Grouping
Rocky Tatlay
Asked On April 25, 2008 07:26 PM

Hello,
I have a two part question about grouping grids. I want to copy a grid with detail levels (nested grid). All I need to do is to be able to paste these results into any text editor.

1) How do I copy a highlighted portion of the grid. I would only be copying either a nested portion of the grid or a header level portion. Basically I not sure how I would obtain the ranges for this copy.
2) How do I copy the whole grid, header and detail levels. Does the grid come with this functionality? Or will I have to go through my dataset?



Sri Rajan [Syncfusion]
Replied On May 9, 2008 07:15 PM

Hi ,

Thanks for your interest in Syncfusion products.

You have to use TableModel.Model.CutPaste.Copy() method to Copy the selections. Here is the code.

this.gridGroupingControl1.TableModel.Model.CutPaste.Copy();


To Copy the headers you need to set the following flags,

To Copy data along with Row Header
>>>>

this.gridGroupingControl1.TableModel.CutPaste.ClipboardFlags |= GridDragDropFlags.RowHeader;


To Copy data along with Column Header
>>>>

this.gridGroupingControl1.TableModel.CutPaste.ClipboardFlags|= GridDragDropFlags.ColHeader;


To select range of cells and copy to clipboard
>>>>>
this.gridGroupingControl1.TableModel.SelectedRanges.Add(GridRangeInfo.Cells(1,1,5,3));
this.gridGroupingControl1.TableModel.Model.CutPaste.Copy();


Please let me know if this helps.

Best Regards,
Srirajan



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.

;