Reputation: 435
I want to create a WPF nested data grid which will have a fixed header and sub header. Below are some points which are required to create the nested grid control:-
Below is an image which depicts the grid which we require.
As shown in the above grid, the grey rows are the main rows aligned to the Main header and the two white rows are the sub rows aligned to the Sub header(operacao, autent., hora etc.)
The collection(Main grid) which has to be bound to this control has another collection as property which contains the rows of the Sub rows(Nested grid).
Upvotes: 0
Views: 788
Reputation: 33
This functionality can be achieved by using following hierarchy:
You can also override the click events and handle the further navigation. Also, in order to achieve the same design do some adjustments in the grid columns. You can achieve this behavior by the mentioned approach.
Upvotes: 1