This is a migrated thread and some comments may be shown as answers.

Hierarchical grid view from hierarchical object

2 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 19 Nov 2011, 12:56 PM
I have a WPF gridview in which I specify the datacolumns and load the data simply with (C#)::

gridFeeEarnerGroups.ItemsSource = Bill.FeeEarnerGroups;

"FeeEarnerGroups" is of type List<FeeEarnerGroup> and this works fine.

I need a sub table to use the data from FeeEarnerGroup.RateSets which is of type List<RateSet> , showing each (0 or more) RateSet per FeeEarnerGroup row.

I've looked at the documentation and tried a few things but I'm struggle to get this working.
Can anyone help please?





2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Nov 2011, 07:55 AM
Hi,

 Can you post your child table definitions and/or hierarchical template for the grid?

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Steve
Top achievements
Rank 1
answered on 04 Dec 2011, 07:31 PM
Thanks for the reply but I figured it out
I use auto-encapsulation in Visual Studio with the keyboard shortcut CTRL-R then CTR-E

My <List> type property was given "internal" instaed of "public". Changing it to public sorted the issue and everything works as it should.

PS: Telerik documentation is excellent

Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Steve
Top achievements
Rank 1
Share this question
or