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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HOWTO: Copy Column Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

6192 Aug 4,2003 12:29 PM UTC Aug 4,2003 01:10 PM UTC WinForms 1
loading
Tags: GridControl
Akshay Arora
Asked On August 4, 2003 12:29 PM UTC

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

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

;