Datagrid on XML, checkbox column added, NOT part of the datacontext. How to get checked status?

Sep 2, 2010 at 4:35 PM

Don't know if the subject is clear, but here it is:

I have a WPF datagrid, with an XML file (Xelement, in fact) as datacontext; displaying works just fine. I would like to give my users the ability to check boxes in an added column, so that deletion would be made in batch once they click on a button to validate their changes. Problem is, I only get what is in datacontext, but I am unable to read back that new column. I must be especially dense (I am still quite new at WPF and totally new at using the WPF Toolbox), but even after spending a good chunk of time looking for it everywhere, I have been unable to find a good explanation on how to do what I am trying to.

Thanks for any pointer.