Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1255
How to prevent the expander from expanding
posted

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?

Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    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.

Children
No Data