Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
420
GroupByRecordPresenter Indentation
posted

Hi, by default each level of grouping is indented, so if I group by two fields I got something like this:

How can I get rid of this indentation (restyling or setting the properties)? I want the grid to look more like this:

 

Thanks!

Parents Reply
  • 145
    posted in reply to Aaron

    We were able to expand the data records by adding a negative margin (Margin="0,0,-46,0" -- details below).  But we're still having problems with getting the header row to span the whole width:

    It looks to us like the VirtualizingDataRecordCellPanel needs to show more labels, but we don't know how to make that happen.  The widths don't cut off, it looks like the items or displayable items list is just too short:

     

     How do we get the panel to show more elements?

    Thanks.

    a

    FYI:  Negative margin on DataRecordPresenter allows TranslateTransform row to span entire width:

     <ControlTemplate TargetType="{x:Type igDP:DataRecordPresenter}">
                        <igWindows:CardPanel x:Name="baseGrid" Background="{TemplateBinding Background}">
                            <Border
           Visibility="Collapsed"
           Background="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, AddRowBackground}}"
           BorderBrush="#FFA9A9A9"
           HorizontalAlignment="Stretch"
           x:Name="addRowFooter"
           VerticalAlignment="Stretch"
           Width="Auto"
           Height="Auto"
           BorderThickness="0,0,0,1"/>
                            <!-- Unindent - added -46 margin offset to comp for translate -->
                            <Grid Margin="0,0,-46,0">
                                <Grid.ColumnDefinitions>

Children