I am trying to create a custom style for GroupByArea in XamDataGrid. There is a very good example for this in the feature browser. However this example does not indicate how to display the horizontal bar on the top of XamDataGrid which hides/displays the GroupByArea content.
Hello,
This is controlled by the ExpanderBar element inside the GroupByArea template. In order to have the expander at the botton, you have to retemplate the GroupByArea element. You can find the default xaml files in the DefaultStyles directory in the Infragistics folder. You can use that style as a base for your own and change the Grid.Row property of the ExpanderBar element like this;
<igWindows:ExpanderBar
x:Name="ExpanderBarButton"
Grid.Row="1"
Height="10"
Command="{x:Static igDP:GroupByArea.ToggleExpandedState}"/>
Hope this helps.
Alex,
If I use my own style (I want to use the default style but take out the expander so the group by area is always visible), I am no longer able to drag the column headers from the grid into the group by area. Is there anyway to supply my own style without having to provide another list of columns?
Daniel