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

Hierarchy and Business Objects

1 Answer 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 13 Jun 2012, 11:26 PM
Since I was not able to get the grouping to work as I needed, I thought I would try the hierarchy feature instead. However, my data is in List<business object> lists and *not* datasets. I can get the parent data to appear, but no child data. Does this feature work with business objects? Or only with datasets?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 18 Jun 2012, 10:28 AM
Hi Deborah,

Thank you for writing.

The grouping functionality of RadGridView and its ability to build hierarchy are semantically different tasks. While grouping allows you to group any kind of data using different parameters, constructing a hierarchy requires hierarchical data.
 
Since you mentioned that you could not set up the groups, I would like to point out that there are several articles about RadGridView's grouping functionality in our online documentation: http://www.telerik.com/help/winforms/gridview-grouping-basic-grouping.html. Some of them might contain the information you need. Additionally, I have prepared a sample project that demonstrates how to use basic grouping.

RadGridView can construct a hierarchy regardless of the type of the data. The only condition is that the data should be hierarchical. The attached project contains a form that illustrates how to build hierarchy using two Lists of business objects.

I hope you will find my answer helpful. Feel free to write back if you need further assistance.

Regards,
Boryana
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Deborah
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or