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

Is it possible to put data in the group header row, that isn't a part of the group?

3 Answers 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 27 Feb 2013, 03:17 PM
I'm trying to use the RadGridView control for a WPF app (.NET 4.5). We've got a WCF service which runs a SQL query that looks at 2 tables in 1 database, and a third table in a secod database. The WCF service returns all of the results. The results include things like client number, case number, client's first and last names, date of birth, etc. We want to group the results by the client number, and that's easily done, but what we also want to do is display things like the client's first and last name, DOB, etc in the group header. Clearly, however, we don't want to group by the client's name, or DOB, etc. Only by the client number (the case number does change from one record to the next and some other fields do too, but aren't relevant to this discussion).

My question is a simple one, is it possible to put into the group header data that isn't a part of the group, like client's first and last name, DOB, etc? If so, how is that done. But if not, then how do we get the data in a way that the RadGridView will display it the way we need it displayed?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Feb 2013, 03:31 PM
Hello,

 You can use the GroupHeaderTemplate property of grid columns to put anything in the group header. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rod
Top achievements
Rank 1
answered on 27 Feb 2013, 05:47 PM
Hi Vlad,

Thank you for your reply. Could you please point me to an example that uses two or more items in the group header template?
0
Vlad
Telerik team
answered on 28 Feb 2013, 06:33 AM
Hello,

 We do not have demo where we are using outside of grid data for group headers however on this demo every single column is with declared GroupHeaderTemplate. You can find the same example in your local copy of our WPF demos?

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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