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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Header Click Event?

Thread ID:





1624 Nov 15,2002 04:30 PM UTC Nov 18,2002 03:12 PM UTC WinForms 4
Tags: GridControl
Ivan Pelly
Asked On November 15, 2002 04:30 PM UTC

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 05:35 PM UTC

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 07:14 PM UTC

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 03:49 PM UTC

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 03:12 PM UTC

That does the trick. Thanks.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon