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
490
How to handle grid events in view model
posted

Hi,

 

We are using MVVM pattern in our application. Please provide some help in handling grid events (like, Editmodestarted,SelectionChanged etc.,) in view model.

 

Thanks,

Ayyappan

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Ayyappan,

    Thank you for your post. I have been looking into it and I created a sample project for you showing the functionality you want to achieve. Basically I used Interactions. I added references to Microsoft.Expression.Interaction and System.Windows.Interactivity assemblies, which contain the classes needed for such functionality. Then I added EventTrigger to the XamDataGrid for the EditModeStarted event and handled it in the ViewModel class. Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.

Children