For some data records, I have used the xamdatagrid recordexpanding event to launch a new new window to edit the remaining part of the data structure in a second xamdatagrid. I do this to reduced the complexity presented to the end user. On those few records where I launch a new window I want to prevent the grid expander from expanding the rest of the data structure.
I don't know if this is an bug but I tried setting the e.Handled to true in the recordexpanding event. However, it doesn't stop the rest of the grid from expanding.
Any thoughts on how to do this?
Hello,
This is not an issue. The RecordExpanding is a cancelable event. Instead of handling it, you should cancel it instead like this:
e.Cancel = true;
This will do the trick.
Hope this helps.