Hello,
I have a DataGrid set up by the self referencing hierarchy example where a row gets expanded when you click it on it. I am using Single mode (Multiple mode has no effect on this issue).
Problem 1:
When I click on an expandable row, the row gets expanded but it doesn't seem to want to collapse unless I expand another row. How can I make the row collapse again on click?
Problem 2:
After switching to another page and then going back to the page where the DataGrid is, the Grid completely disappears and doesn't return until I restart the project. Is this maybe linked to the first problem?
I am binding to the RowRender event where I set the expandable rows (with Expandable property) and to the LoadChildData event to set the data source for the child elements (with the Data property).
What I have also noticed is that the RowRender event gets invoked around 10 times even though I have 2 rows of child data to display.
@GoogleUser247-1 I have 2 data grids like a master-detail. When I add a new row to the detail and save, the parent row collapses. After saving data, I keep focus on the current page but couldn't figure it out how to make is stay expanded.