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
475
Event does not get fired
posted

Hello,

 

I have a custom pin/unpin columns menu in the header. On clicking the item the following gets called.

 

 

ultraGridPosition.DisplayLayout.Bands[0].Columns[columnKey].Header.Fixed = true;

but the AfterColPosChanged event does not fire. I need to capture an event when the columns re-arrange on the grid and get the column order.

Thanks,

Vijayan

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Vijayan,

    Some events only fire in response to user action and do not fire when something is changed in code.

    The idea is that if a user changes something, you need an event to tell you that it happened. But if you change something in code, you know you did it and you don't necessarily need an event to tell you.

    So typically what you would do in a case like this is take your code out of the AfterColPosChanged event and put it into a method. Then call that method from the AfterColPosChanged event and also from anywhere else in your code that changes the fixed state of a header.

Children