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
320
Drag&Drop CellValue on ContextMenu
posted

Hi Guys,

I want to achieve the following in a xamDataGrid.

When a I start dragging a cell value, I want to display a contextmenu, and drop the cell value on one of the options in the menu. Then, according on the option selected when drop the value, I'd like to fire the event associated to that option. I was wondering if you have something like this already done?. Could you provide an example?

Thanks in advance.

Parents
  • 2490
    Offline posted

    Hello,

     

    I have prepared a custom application and used a variant right mouse click.

    I hooked two different handlers to each option, you can easily change that and use one handler and take for example the option's header and the cell which is clicked. Please, test it with right mouse click on different cells and choosing a different options. If this does not reproduce your scenario, please let me know.

    XamDataGrid_ContextMenu.zip
Reply Children