title: Xceed DataGrid: Remove spacing above detail rows
body: <p><a href="https://i.stack.imgur.com/sen7B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sen7B.png" alt="enter image description here"></a></p>
  
  <p>How can I remove this spacing Xceed automatically puts in before detail rows? Normally there's a title here but I set it to nothing as I didn't want it. The spacing marked red is the most annoying.</p>
  
  <p>I found that replacing this line:</p>
  
  <pre><code>                &lt;xcdg:DetailConfiguration RelationName="Settings" Title=""&gt;
  </code></pre>
  
  <p>With this line:</p>
  
  <pre><code>            &lt;xcdg:DetailConfiguration RelationName="Settings" Title="" UseDefaultHeadersFooters="False"&gt;
  </code></pre>
  
  <p>Will remove the space marked red. However it also removed my header: </p>
  
  <p>| Name | Description | Edit Values | Edit Value |</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
  
      &lt;!--#region DataTemplateSelector--&gt;
      &lt;local:SettingsDataTemplateSelector x:Key="SettingsDataTemplateSelector" /&gt;
  
      &lt;DataTemplate x:Key="TextboxDataTemplate"&gt;
          &lt;xcdg:MaskedTextBox IsTabStop="True" Mask="{Binding EditMask}" Text="{Binding EditValue, IsAsync=False, Mode=TwoWay, UpdateSourceTrigger=LostFocus, ValidatesOnExceptions=True}"/&gt;
      &lt;/DataTemplate&gt;
  
      &lt;DataTemplate x:Key="ComboDataTemplate"&gt;
          &lt;ComboBox IsTabStop="True"  ItemsSource="{Binding Path=SelectionValues}"
                                      SelectedValuePath="Value"
                                      SelectedValue="{Binding Path=SelectionValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      DisplayMemberPath="ValueText"&gt;
          &lt;/ComboBox&gt;
      &lt;/DataTemplate&gt;
  
      &lt;DataTemplate x:Key="SliderDataTemplate"&gt;
          &lt;Slider IsTabStop="True" Value="{Binding EditSliderValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                      Minimum="{Binding MinRangeValue}" 
                      Maximum="{Binding MaxRangeValue}"
                      VerticalAlignment="Bottom" 
                      IsSnapToTickEnabled="True"
                      TickFrequency="1"
                      Margin="0,0,0,0"/&gt;
      &lt;/DataTemplate&gt;
      &lt;!--#endregion--&gt;
  
      &lt;xcdg:DataGridCollectionViewSource x:Key="Features" 
                                          Source ="{Binding Path=Demo.Features}"
                                          AutoFilterMode="And"
                                          AutoCreateDetailDescriptions="False" 
                                          AutoCreateItemProperties="False"&gt;
          &lt;xcdg:DataGridCollectionViewSource.DetailDescriptions&gt;
              &lt;xcdg:PropertyDetailDescription RelationName="Settings" AutoCreateDetailDescriptions="False" AutoCreateItemProperties="False"/&gt;
          &lt;/xcdg:DataGridCollectionViewSource.DetailDescriptions&gt;
      &lt;/xcdg:DataGridCollectionViewSource&gt;
  &lt;/UserControl.Resources&gt;
  
  &lt;Grid&gt;
      &lt;!--#region Xceed DataGrid--&gt;
      &lt;xcdg:DataGridControl x:Name="datagrid"
                            ItemsSource="{Binding Source={StaticResource Features}}"
                            KeyUp="DatagridKeyUp"
                            AllowDetailToggle="True" 
                            Margin="10"
                            NavigationBehavior="RowOrCell" 
                            CellEditorDisplayConditions="RowIsBeingEdited, 
                            MouseOverCell, MouseOverRow, RowIsCurrent, CellIsCurrent" 
                            EditTriggers="BeginEditCommand, ClickOnCurrentCell, 
                            SingleClick, CellIsCurrent, ActivationGesture, RowIsCurrent"
                            ItemScrollingBehavior="Immediate"
                            AutoCreateColumns="False"&gt;
  
          &lt;xcdg:DataGridControl.Resources&gt;
              &lt;Style TargetType="xcdg:TableViewScrollViewer"&gt;
                  &lt;Setter Property="HorizontalScrollBarVisibility" Value="Auto" /&gt;
                  &lt;Setter Property="VerticalScrollBarVisibility" Value="Auto" /&gt;
              &lt;/Style&gt;
          &lt;/xcdg:DataGridControl.Resources&gt;
  
          &lt;xcdg:DataGridControl.View&gt;
              &lt;xcdg:TableflowView UseDefaultHeadersFooters="False" ColumnStretchMode="Last"&gt;
                  &lt;xcdg:TableflowView.FixedHeaders&gt;
                      &lt;DataTemplate&gt;
                          &lt;xcdg:ColumnManagerRow /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/xcdg:TableflowView.FixedHeaders&gt;
              &lt;/xcdg:TableflowView&gt;
          &lt;/xcdg:DataGridControl.View&gt;
  
          &lt;xcdg:DataGridControl.Columns&gt;
              &lt;xcdg:Column FieldName="FeatureID" Title="FeatureID" ReadOnly="True" /&gt;
              &lt;xcdg:Column FieldName="Name" Title="Feature name" ReadOnly="True" /&gt;
              &lt;xcdg:Column FieldName="Description" Title="Description" ReadOnly="True" /&gt;
              &lt;xcdg:Column FieldName=" "/&gt;
          &lt;/xcdg:DataGridControl.Columns&gt;
  
          &lt;xcdg:DataGridControl.DetailConfigurations&gt;
              &lt;xcdg:DetailConfiguration RelationName="Settings" Title=""&gt;
                  &lt;xcdg:DetailConfiguration.Columns&gt;
                      &lt;xcdg:Column FieldName="Name" Title="Name" ReadOnly="True"/&gt;
                      &lt;xcdg:Column FieldName="Description" Title="Description" ReadOnly="True"/&gt;
                      &lt;xcdg:Column FieldName="EditValues" Title="Edit Values" ReadOnly="True"/&gt;
                      &lt;xcdg:Column FieldName="EditValueVar" Title="Edit Value" Width="150" ReadOnly="False"
                                   CellContentTemplateSelector="{StaticResource SettingsDataTemplateSelector}"
                                   DisplayMemberBinding="{Binding}" /&gt;
                      &lt;xcdg:Column FieldName=" "/&gt;
                  &lt;/xcdg:DetailConfiguration.Columns&gt;
              &lt;/xcdg:DetailConfiguration&gt;
          &lt;/xcdg:DataGridControl.DetailConfigurations&gt;
      &lt;/xcdg:DataGridControl&gt;
      &lt;!--#endregion--&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>EDIT: I figured out how to get rid of the blue spacing, but still can't figure out how to get rid of the red.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;Style TargetType="xcdg:HierarchicalGroupLevelIndicatorPane" &gt;
      &lt;Setter Property="MaxWidth" Value="0" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>You might think that you could add <code>&lt;Setter Property="MaxHeight" Value="0" /&gt;</code>, but that does nothing.</p>