HOWTO: Copy Column Headers

I would like to know how I may be able to copy the Column header when I copy the grid. I select the entire grid bu clicking on cell 0,0 and then Ctrl+C, but when I paste, I only get the values. Is there a way to get the Column Headers in there as well?

1 Reply

AD Administrator Syncfusion Team August 4, 2003 01:10 PM UTC

You can handle the ClipboardCopy event, and set the ClipboardFlags to include ColHeader.
private void gridControl1_ClipboardCopy(object sender, GridCutPasteEventArgs e)
{
	e.ClipboardFlags |= GridDragDropFlags.ColHeader;
}

Loader.
Up arrow icon