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

Column Header Click Event?

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.

4 Replies

AD Administrator Syncfusion Team 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?

IP Ivan Pelly 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

AD Administrator Syncfusion Team 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.

IP Ivan Pelly November 18, 2002 03:12 PM UTC

That does the trick. Thanks.

Live Chat Icon For mobile
Up arrow icon