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

[Solved] GridView - Grouping - How to change/convert the value

2 Answers 101 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.
MB
Top achievements
Rank 1
MB asked on 18 Oct 2010, 03:58 PM

Could you provide a sample of how to convert/change the value displayed in the group header?

For example, when a value is null, there is nothing displayed in the group header which looks strange.  We'd like to replace this with something like "N/A".

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 21 Oct 2010, 12:45 PM
Hello Mark,

In order to achieve this effect you can define your own GroupHeaderTemplate as it is shown in the attached example.

See the attached project and if you need any further assistance please let me know.

Greetings,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
MB
Top achievements
Rank 1
answered on 22 Oct 2010, 08:35 PM
Thanks, this was useful as was the 198219_demogridheader project I found on another post which helped me achieve what we were trying to do.
Tags
GridView
Asked by
MB
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
MB
Top achievements
Rank 1
Share this question
or