Customize DataGrid GroupColumnDescriptions

Is it possible to customize the group header so it doesn't display the column header text plus doesn't display item count.  This will just be confusing for user.   Remove the text in yellow.   Thanks



Image_6159_1742481060292


1 Reply

SD Sethupathy Devarajan Syncfusion Team March 21, 2025 08:48 AM UTC

Hi Joseph,


You need to customize the group header so it doesn't display the column header text or item count. You can achieve this by using the GroupCaptionTextFormat property of the dataGrid. We have shared the code snippet, link, and a simple sample for your reference.

Code snippet:

<syncfusion:SfDataGrid x:Name="sfGrid"

                       GridLinesVisibility="Both"

                       HeaderGridLinesVisibility="Both"

                       ColumnWidthMode="Auto"

                       AllowGroupExpandCollapse="True"

                       GroupingMode="Single"

                       GroupCaptionTextFormat="{}{ColumnName}"

                       AutoGenerateColumnsMode="None"

                       ItemsSource="{Binding Employees}"/>


Ug link : GroupCaptionTextFormat


Regards,

Sethupathy D.


Attachment: SfDataGridSample_8792d11b.zip

Loader.
Up arrow icon