Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
How to capture Column header click event
posted

Please tel me how to capture column header click event. In default settings when click on columns header its get sorting. Handling sorting event is not sufficient for me.. because I want to capture the event when Label action set to other options as well. 

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    You can handle the PreviewMouseLeftButtonDown event and traverse the visual tree from the  (e.OriginalSource) and find if there is an ancestor of type LabelPresenter. For this, you can use our helper methods : Infragistics.Windows.Utilities.GetAncestorFromType(...);

Children