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

Which control - GridView or TreeListView

2 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon Woods
Top achievements
Rank 1
Simon Woods asked on 09 Mar 2012, 07:03 AM
Hi

I am new to the telerik wpf controls and because I am am unsure of their capabilities, I don't know which one to select. I've been considering  the radgridview in "hierachical mode" but now I'm not sure whether this is the correct control to use or perhaps the TreeListView.

My use case is as follows:
I have some hierarchical data as follows

Subject A  Name  Address  DoB etc
   HospitalVisit1  VisitDate  SeenBy etc etc
      Treatment1 Location Drug  etc etc
      Treatment2 Location Drug  etc etc 
      Treatment3 Location Drug  etc etc 
   HospitalVisit2  VisitDate  SeenBy etc etc
      Treatment1 Location Drug etc etc
      Treatment2 Location Drug etc etc 

Subject B  Name  Address  DoB etc
   HospitalVisit1  VisitDate  SeenBy etc etc
      Treatment1 Location Drug etc etc
      Treatment2 Location Drug etc etc 

I need to display the above. Then I going to provide the UI to flatten this data into 1 row per subject. To do this, I think I need to add a boolean columns to permit the user to choose which of the child events they want to use in the flattening mechanism. eg for Subject A

X    Subject A  Name  Address  DoB etc
        HospitalVisit1  VisitDate  SeenBy etc etc
           Treatment1 Location Drug  etc etc
           Treatment2 Location Drug  etc etc 
           Treatment3 Location Drug  etc etc 
X      HospitalVisit2  VisitDate  SeenBy etc etc
X         Treatment1 Location Drug etc etc
           Treatment2 Location Drug etc etc  

The rows marked X will then be used to create a flat structure eg

Subject A  Name  Address  DoB HospitalVisit2  VisitDate  SeenBy  Treatment1 Location Drug etc etc 

I'd be grateful if someone could suggest which control would best suit my purposes. I'd assumed the radgridview or the treelistview but perhaps there may be other ways of doing this which may be better

Many thx

Simon



2 Answers, 1 is accepted

Sort by
0
Simon Woods
Top achievements
Rank 1
answered on 09 Mar 2012, 07:07 AM
I should also add that I may need to specify which columns should be included/excluded  as well 
0
Vlad
Telerik team
answered on 14 Mar 2012, 08:12 AM
Hi Simon,

According to the posted structure you have heterogeneous data - in this case you can use RadGridView only.
 
All the best,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Simon Woods
Top achievements
Rank 1
Answers by
Simon Woods
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or