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
AfterColPosChanged event fired through code

    I am working on a .NET 2.0 application using Ultrawingrid.

AfterColPosChanged event is fired when i resize the column manually using mouse or when i
change the width of the column through code.

I want to prevent some part of code from executing if it is fired through code.

How to  check whether AfterColPosChanged event is fired manually or through code?


  • 469350
    Offline posted

    Hi Ashok,

    Typically, what you would do is set a flag when your code is changing something, then check that flag within the event handler. If the flag is not set, you know the change was made by the user.