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.
Syncfusion Feedback

copy/past grid with columns headers

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 12:51 PM UTC

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 12:51 PM UTC

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 04:07 PM UTC

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.

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

;