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

[Solved] Display Column Headers for each Group/Category in RadGridView

1 Answer 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
veena
Top achievements
Rank 1
veena asked on 25 Nov 2009, 12:59 PM
Hi,

We have a RadGridView used in one of our .xaml file. This GridView is used to show customer data. The customers are grouped based on the customer type in the grid. Currently the data being displayed in the GridView is in this format:

We want the Header of the gridview to be displayed for each group
===========================================================
CustomerName        OrderCount        Latest Order Date ( Column Headers)
CustomerType - A (Group Header)
    Customer1                5                        1/1/2000
    Customer2                6                        1/4/2000
CustomerType - B (Group Header)
    Customer3                5                        1/1/2000
    Customer4                6                        1/4/2000
===========================================================
This is the tag details currently given:

 

 

<RadGrid:RadGridView AutoGenerateColumns="False"

 

 

ShowColumnHeaders="True"

 

 

ShowGroupPanel="False"

 

AutoExpandGroups

 

="True"

 

 

 

<RadGrid:RadGridView.GroupDescriptions>

 

 

 

<data:RadGroupDescription PropertyName="CustomerType" >

 

 

 

</data:RadGroupDescription>

 

 

 

</RadGrid:RadGridView.GroupDescriptions>

 

</RadGrid:RadGridView >

We want the Header of the gridview to be displayed for each group. Instead of column headers appearing for whole grid once, we want it to be displayed for each group type.
===========================================================
CustomerType - A (Group Header)
CustomerName        OrderCount        Latest Order Date ( Column Headers)
    Customer1                5                        1/1/2000
    Customer2                6                        1/4/2000
CustomerType - B (Group Header)
CustomerName        OrderCount        Latest Order Date ( Column Headers)
    Customer3                5                        1/1/2000
    Customer4                6                        1/4/2000
===========================================================

What needs to be given/changed in the Properties for RadGridView for achieving this.

Thanks in Advance
VR

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Nov 2009, 11:42 AM
Hello,

You cannot achieve this using grouping however you can use self-referencing hierarchy.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
veena
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or