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
205
How to get the Key of the selected column using MVVM style
posted

Hi,

I have 2 data grids and have a situation where a user can right click on a column that brings up a menu item that allows the user to "Sent to other grid column" option where the selected column values need to be copied across to the same column on the other grid,

If there is a way to get the Key, i can then get the values and copy it into the same Property on the observable collection of the other grid.

So how do i get the Key that the grid is bound to ? I want to do this in the MVVM way, is there a way out?

Parents Reply Children