Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 277259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T01:03:01+00:00 2026-05-12T01:03:01+00:00

NB this was for the silverlight 3 beta, RTM seems to handle grouping entirely

  • 0

NB this was for the silverlight 3 beta, RTM seems to handle grouping entirely differently.

I’ve a grid that is working fine, which I’m using the GroupDescriptions property like so:

<data:DataGrid.GroupDescriptions>
    <cm:PropertyGroupDescription PropertyName="ClientName" />
</data:DataGrid.GroupDescriptions>

This works brilliantly, it’s only when the datagrid is rendered, it shows the grouping by “ClientName”. Obviously I’d like that to be “Client Name”. I cannot for the life of me see a property that would allow me to set this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T01:03:02+00:00Added an answer on May 12, 2026 at 1:03 am

    FWIW this has changed in SL3 RTM:

    Silverlight 3 Beta

    [Xaml]

    <dataGrid.GroupDescriptions>
    
          <windata:PropertyGroupDescription PropertyName=”State” />
    
    </dataGrid.GroupDescriptions>
    

    Silverlight 3 RTM

    [c#]

    pagedCollectionView.GroupDescriptions.Add(new PropertyGroupDescription(“State”));
    

    You need to use the PagedCollectionView class to accomplish this, it can’t be done in Xaml anymore. See http://msdn.microsoft.com/en-us/library/dd833072(VS.95).aspx

    And from that link, here’s how to change the text in the group header:

    When items are grouped in the DataGrid, each group has a header. You can change the appearance of the DataGridRowGroupHeader by defining a custom Style and adding it to the RowGroupHeaderStyles collection. If you have multiple levels of grouping, you can apply different styles to each group level. Styles are applied in the order in which they are defined. For example, if you define two styles, the first will be applied to top level row groups. The second style will be applied to all row groups at the second level and lower. The DataContext of the DataGridRowGroupHeader is the CollectionViewGroup that the header represents.

    So a quick and dirty example would be:

    <dataControls:DataGrid x:Name="Grid">
        <dataControls:DataGrid.RowGroupHeaderStyles>
            <Style TargetType="dataControls:DataGridRowGroupHeader">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <TextBlock Text="My text."/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
       </dataControls:DataGrid.RowGroupHeaderStyles>
    </dataControls:DataGrid>
    

    In practice you probably want to include the other control parts that are specified for DataGridRowGroupHeader so that you can expand and collapse them. As with everything WPF, instead of just setting a “GroupText” property you have to go whole 9 yards!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I'm working on this Silverlight 3.0 Project that is completely filled with Async Calls
I've got this Silverlight Prism application that is using MVVM. The model calls a
I'm working on a Silverlight project with the WCF RIA Services beta. I'm using
I'm writing a silverlight application that resembles a shopping cart system. This app can
I'm using the WCF RIA Services Beta with Silverlight 3.0 and I want to
I saw this Silverlight application that works inside the browser but if you clicked
Update : This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved
This might be a bit tricky setup but... I have this Silverlight project that
I'm using RIA Services with LinqToEntitiesDomainService<> and Silverlight 5 Beta to generate the DomainContext

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.