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.
Is there a way to resize the datagrid to its original height after the row details have been collapsed?
Is it possible to do it declaratively?