views:

180

answers:

3

I am using RowDetailsTemplate to display a nested datagrid for a row. Now the datagrid expands in height when I select a row to show this nested datagrid. But it doesn't reduce its height when the row is deselected.

  1. Is there a way to resize the datagrid to its original height after the row details have been collapsed?

  2. Is it possible to do it declaratively?

A: 

I have a similar issue when setting the visibility of certain rows to collapsed, the datagrid maintains its height rather than collapsing to the height of the visible rows - it doesn't always do this though. If anyone knows a way of forcing it to realign with the visible rows height that would be great.

Steve
A: 

Same Issue here! Anyone?

LaughingJohn