I'm trying to implement a customised grouping mechanism/hirerarcy representation in my WPF xamDataGrid. I have been using the default grouping mechanism of the datagrid but it doesn't achieve the layout/look I'm trying to achieve. I'm looking to implement the following layout
1- The records dataset already includes the parent row with all the summary fields set correctly, therefore there is no need for xamDataGrid to do any work
2- The three records shown above have a common field which must not be displayed to the user (as its meaniningless)
3- The closest layout I've managed to achive with xamDataGrid is by simulating a "join" query between two instances of the same table. However this way is quite in-efficient.
Is there a way that I can override the row renders to do the following:
when a new record arrives, it tries to look for the common value which is stored in a hidden column, if a match is found we create an the expansion image (+) and the row as a child row
Hello,
I noticed your post from last year wasn't answered. I apologize. We received a huge influx of posts last year. We are going through making sure all posts are answered.
Did you find a working solution for this? Would you share it here if you did?
Have you considered looking at the new Pivot Grid? This interface supports relational data sets.
As far as working with the XamDataGrid, you can customize group headers (see Feature Browser) and you can utilize CellValuePresenters and UnoundFields to do a lot. You can also override the layout to intrroduce a new row. Perhaps with a trigger you can collapse the layout of the field. Regardless, this is a complicated customization.
Let me know if you need further assistance with this.
Thanks!