Skip to main content

Microsoft Silverlight

Answered Question Hot to access RowGroupHeaderStyles in Expression BlendRSS Feed

(0)

EisenB
EisenB

Member

Member

59 points

86 Posts

Hot to access RowGroupHeaderStyles in Expression Blend

I would like to style the DataGrid grouping but I can't seem to find the RowGroupHeaderStyles in Expression Blend. Usually I right click the DataGrid or a DataGridColumn and then go to edit template but I dont see anything for RowGroupHeaderStyles. Any ideas?

Thanks

My #1 SL Feature Request: Native Print API!

Min-Hong Tang - MSFT
Min-Hong...

Contributor

Contributor

3376 points

377 Posts

Answered Question

Re: Hot to access RowGroupHeaderStyles in Expression Blend

Hi,

   Yes, the rowGroupHeaderStyle is not in the default template,maybe because normally it's not visible. It seems that you have to do it in xaml or c# way.

   Here is an example.

   <data:DataGrid.RowGroupHeaderStyles>
    <!-- Style for groups at top level -->
    <Style TargetType="data:DataGridRowGroupHeader">
        <Setter Property="PropertyNameVisibility" Value="Collapsed" />
        <Setter Property="Background" Value="#FF112255" />
        <Setter Property="Foreground" Value="#FFEEEEEE" />
        <Setter Property="SublevelIndent" Value="15" />
    </Style>
   </data:DataGrid.RowGroupHeaderStyles>

   For more information , you can check here:

  http://msdn.microsoft.com/en-us/library/dd833072(VS.95).aspx

Best Regards

Min-Hong Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

EisenB
EisenB

Member

Member

59 points

86 Posts

Answered Question

Re: Hot to access RowGroupHeaderStyles in Expression Blend

Thanks, I also found what seems to be the verbose default template here:

 http://stackoverflow.com/questions/1107849/silverlight-3-beta-datagrid-grouping

 

My #1 SL Feature Request: Native Print API!
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities