Here is the scenario
I have a xamDataGrid where i want the records shown in heirarchy. I want to add a button for clear all and select all on each group level. and on button click event i bind the button datacontext with DataPresenter.ActiveRecord, but…