Datagrid - Obtaining the clicked row

Mar 3, 2009 at 6:16 PM

Hi,

I'm using the WPF toolkit Datagrid with a context menu.. The point is: when I left click on top of a row the context menu appears (with a menu item) and I click on an option that allows me to edit all the data on a new Window...

I've been able to do everything except obtaining the clicked row in order to know wich data to ind to the form..

Is there a way to obtain it? ... The "e" parameter of the "menuitem" clicked doesn't provide access to the selected row?

Thanks in advance
Mar 4, 2009 at 12:02 PM
Colin Eberhardt has done a nice write-up that is probably helpful to you.

http://www.scottlogic.co.uk/blog/wpf/2008/12/wpf-datagrid-detecting-clicked-cell-and-row/