I have a WinGrid (V 8.1) which is bound to a complex datasource. In the example the datasource is structured in this way:
Person + List<Address> + List<Contact>
Of course I bind to the grid a BindingList<Person> and by magic the grid creates for me for each Person row, two child nodes, one for the collection of Addresses and for the Contacts.
Now, what is the best approach to avoid this behavior in the Grid, without changing the structure of the datasource as we can't create a DTO for each Grid bound to a complex structure?
Thank you
Thank you Matthew, I have verified your answer against my code and it works perfectly.
Try setting the Grid.DisplayLayout.MaxBandDepth = 1; and it will only load the root structure, in this case the Person.