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.

HOWTO: Copy Column Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

6192 Aug 4,2003 08:29 AM Aug 4,2003 09:10 AM Windows Forms 1
loading
Tags: GridControl
Akshay Arora
Asked On August 4, 2003 08:29 AM

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?

Administrator [Syncfusion]
Replied On August 4, 2003 09:10 AM

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;
}

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.

;