Incorrect output with Nested DataGrid

I'm having a problem trying to correctly display a nested DataGrid output.
I want the third DataGrid (second nested) to only display a single row, however two rows are displayed instead.
I'm not sure what mistake I've made, is anyone able to provide some assistance?

Output:

Code:

HTML:

Never mind I've find my mistake.