Articles in this section
Category / Section

How to customize the Group Caption Text?

1 min read

In GridDataControl, you can customize the group caption text by using GroupCaptionText API.

GroupCaptionText in GridDataControl is set based on the following three values.

Options

Comments

Key

Represents the name of the group i.e. Grouping the records is done based on particular value (Key Value).

Itemcount

Represents the number of items in the particular group.

ColumnName

Represents the name of the grouped column

 

XAML

<syncfusion:GridDataControl x:Name="SyncGrid"
                                    AllowDrop="True"
                                    AutoPopulateColumns="False"
                                    GroupCaptionText="'{ColumnName}- {Key}'"
                                    ItemsSource="{Binding GDCSource}"
                                    ShowAddNewRow="False"
                                    ShowFilterBar="False"
                                    ShowGroupDropArea="True">  

The following screen shot shows the output for the above code in the GridDataControl.

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied