Search code examples
c#winformsdevexpress

Config Column on Design page of Devexpress Gridcontrol Master-Detail Objects List,


I want to use List of objects to do Data Binding with GridCountrol, I find out a sample code of for doing this,

I wonder if I use this way to bind data could I still use the designer to set the column

The gridView2 showing column is different from what I setting as the pictures I attached.

The setting of the detail view columns enter image description here

The actually showing columns of the detail view enter image description here

How could I make the showing column as My designer setting?

Thanks

This is my sample code


Solution

  • To apply gridView2 to a collection property, change the level name (Level1) to the collection property name (GPEstaciones).