I am trying to change the color of the group by header (the row that has the expansion indicator). How do I do this?
Hello Dave,
I have been investigating your issue and despite that this cannot be done using the built-in functionality I have found a way for you to achieve your goal by retemplating the GroupByRecordPresenter. What you can do is get the original template from the DefaultStyles folder (default install path: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.2\WPF\DefaultStyles ) from the DataPresenterGeneric_Express.xaml . Inside the template you can set the Background property of the Grid which is placed inside the x:Name="highlight" Border.
Hope this helps. Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
I tried and it did not change the color. I have pasted the area where I made the change and made the change bold/italics. Please look my change over and let me know if I am doing the change in the wrong place or if I am setting the background incorrectly. As a side note, I also tried changing the Stroke color which is listed in the <rectangle> located in the grid. This didn't have any affect either.
Change 1:
<!-- End Added 8/1/2006 GH -->
<!-- End Background Bar -->
<Border
x:Name="highlight"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
CornerRadius="2,2,2,2"
Background="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelHighlight}}">
<Grid Margin="0,0,0,0" Width="Auto" Height="Auto" Background="White">
<Rectangle
Stroke="#44000000"
StrokeThickness="1"
RadiusX="1.55015910897703"
RadiusY="1.55015910897703"
Fill="Transparent"/>
Margin="1"
Stroke="#44FFFFFF"
RadiusX="0.550159108977027"
RadiusY="0.550159108977027"
</Grid>