I have a ContextMenu inside DataGrid, I need to pass the selected items, selected cells as an argument to my Delegate comments. When i try with the following code. i am getting an BindingError as "Cannot find source for binding with reference 'ElementName=m_dsGrid'. BindingExpression:Path=SelectedItems.Cells; DataItem=null; target element is 'MenuItem' (Name=''); target property is 'CommandParameter' (type 'Object')"
ActiveDataItem="{Binding SelectedCustomer, UpdateSourceTrigger=PropertyChanged, Source=.}">
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sanjay KumarRank #561 · 4.3K reputationPosted Aug 7, 2014, 8:58 PM EDT
try this
http://www.devcurry.com/2011/05/wpf-4-using-datagrid-context-menu-for.html
http://blog.magnusmontin.net/2013/09/29/export-data-from-a-datagrid/