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.

copy/past grid with columns headers

Thread ID:

Created:

Updated:

Platform:

Replies:

45255 Jun 15,2006 06:23 AM Jun 15,2006 12:07 PM Windows Forms 3
loading
Tags: GridControl
peeter
Asked On June 15, 2006 06:23 AM

hy, i using the grid and the grouping grid and i would like to know why after a copy/past in excel the columns headers aren''t copied. or there is a simple method to do it. regards,

Administrator [Syncfusion]
Replied On June 15, 2006 08:51 AM

Hi Peeter, Please refer to the below forum thread. http://www.syncfusion.com/support/forums/message.aspx?MessageID=35083 Regards, Calvin.

Administrator [Syncfusion]
Replied On June 15, 2006 08:51 AM

Hi Peeter, You can use the ClipboardCopy event to add the column headers to the ranges being copied. Below is a snippet. private void Model_ClipboardCopy(object sender, Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs e) { if(!e.RangeList.AnyRangeContains(GridRangeInfo.Row(0))) { e.ClipboardFlags |= GridDragDropFlags.ColHeader; e.RangeList.Add(GridRangeInfo.Row(0)); } } Best Regards, Haneef

peeter
Replied On June 15, 2006 12:07 PM

tanks haneef >Hi Peeter, >You can use the ClipboardCopy event to add the column headers to the ranges being copied. Below is a snippet. > > >private void Model_ClipboardCopy(object sender, Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs e) >{ > if(!e.RangeList.AnyRangeContains(GridRangeInfo.Row(0))) > { > e.ClipboardFlags |= GridDragDropFlags.ColHeader; > e.RangeList.Add(GridRangeInfo.Row(0)); > } >} > > >Best Regards, >Haneef

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.

;