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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay KumarPosted Aug 8, 2014, 12:58 AM
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/