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
160
CollapseWhenEmpty - collapsing empty column
posted

Hi,

I have a XamDataGrid, where I would like to hide/collapse a column if all cellvalues in that column is null. I've tried setting the attribute 'CollapseWhenEmpty='True'' but it seems that it has no effect.

Anyone know a good solution to my problem: how to make CollapseWhenEmpty work or any other way to collapse a column?

thanks

 

 

 

  • 54937
    Offline posted

    That property only affects views like CardView that support collapsing cells within a card - i.e. in card view it allows a cell of a given record to be collapsed and not occupy space in the layout which could allow the card to be smaller. The grid has no feature where it will force the load of every record, evaluate the value of a given cell and then use that to try and resolve the Visibility. You would have to explictly set the Visibility property of the Field.