copy/past grid with columns headers

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,

3 Replies

AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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


PE peeter 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

Loader.
Up arrow icon