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.

Column Header Click Event?

Thread ID:

Created:

Updated:

Platform:

Replies:

1624 Nov 15,2002 11:30 AM Nov 18,2002 10:12 AM Windows Forms 4
loading
Tags: GridControl
Ivan Pelly
Asked On November 15, 2002 11:30 AM

How can I capture a click in the column header? I'm currently using MouseUp, but if fires after you resize a column, and differentiating between a header click and a column resize in the MouseUp seems clunky. Thanks.

Administrator [Syncfusion]
Replied On November 15, 2002 12:35 PM

Did you try listening to the CellClick event and checking e.RowIndex and e.ColIndex to see if it is a column header cell?

Ivan Pelly
Replied On November 15, 2002 02:14 PM

The CellClick event doesn't appear to fire when I click on a column header. (The cursor turns to a down-arrow as I move over the column header. When I click, the column becomes selected, and the cursor changes to a regular arrow with a tiny marquee at the tail). Thanks, - Ivan Pelly

Administrator [Syncfusion]
Replied On November 16, 2002 10:49 AM

What version of the grid are you using? The current 1.5 version (and I think the previous 1.1 version) fire the Cell_Click event if you click a column header.

Ivan Pelly
Replied On November 18, 2002 10:12 AM

That does the trick. Thanks.

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.

;