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
530
How to pick up on event when columns are re-ordered using Column Chooser dialog
posted

In the XamGrid, how can I respond in code-behind to the event when columns are re-ordered using the Column Chooser dialog?

There doesn't seem to be any specific appropriate event that gets raised, but I may be missing something.

  • 40030
    Offline posted

    Hi, 

    We don't expose any specific events. 

    However, i suppose you could listen to the xamGrid's Columns' CollectionChanged event. 

    When you move a column the event will raise for remove/add actions.

    this.grid1.Columns.CollectionChanged += new NotifyCollectionChangedEventHandler(Columns_CollectionChanged);

    I hope this helps, 

    -SteveZ