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

Grouping Problem

1 Answer 299 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Goje
Top achievements
Rank 1
Goje asked on 17 Aug 2016, 05:51 AM

When radGridView's data is grouped by a column and the column's HeaderText is empty string then a colon sign (:) is shown on the groups of rows in grid. How can I hide this colon sign? For more details see the attached image please.

Here is shortened code:

1.grid.Columns["Code"].HeaderText = "";
2.grid.GroupDescriptors.Add(new Telerik.WinControls.Data.GroupDescriptor("Code"));

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Aug 2016, 11:30 AM
Hello Goje,

Thank you for writing. 

By default, RadGridView displays the column name and the group value separated by ":". If you set the column's HeaderText to an empty string, you are supposed to see the ":" and the group value. The following help article demonstrates how you can customize the displayed text in the group rows by using the GroupSummaryEvaluate event: http://docs.telerik.com/devtools/winforms/gridview/grouping/formatting-group-header-row 

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Goje
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or