AD
Administrator
Syncfusion Team
September 22, 2005 01:32 PM UTC
Hi Akash,
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,
Jay N
AD
Administrator
Syncfusion Team
September 30, 2005 03:08 PM UTC
Thanks Jay,
All I needed was the clipboardflags settings - I only want to include the row/col headers if the user has selected them.
Akash
>Hi Akash,
>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,
>Jay N