Hi,
I'm using DataGrid's hierarchy option as per the example on the demo page, but the rows can't be expanded. The first column with the small arrow used to switch details visibility is missing, and Grid.ExpandRows(Grid.PagedView) doesn't work. I set grid's ExpandMode="DataGridExpandMode.Single" and RowRender="GridRowRender". The event handler is as follows:
I noticed that the first column with the hierarchy (expansion) indicator (arrow) is there but it is 1-2px wide in my case. So now the question is why this column is so narrow and how to enlarge it?
Ok, found the reason why column is not visible - it's style was overridden intentionally. Now the problem/question is reversed. If ShowExpandColumn is set to false and the DataGrid doesn't have a Template, why in some cases the expandable indicator column is still visible?
That was the reason to hide this column through style.