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
355
Grouped record indent
posted

The default functionality of the XamDataGrid indents the child records of a Group.  I would like to remove the indent.  I have used this technique to remove the indent: http://ko.infragistics.com/community/forums/t/43257.aspx.  I placed a RenderTransform on the DataRecordPresenter style...

<Setter Property="RenderTransform" Value="{Binding Path=NestingDepth, Converter={StaticResource GroupByTransformConverter}}"/>

This works to shift the entire record over the 17 pixels but it messes up the Label/Content alignment for every column except the first.  I have attached a screenshot.  You can see that the second column's Label (Users) is shifted to the right and it's content shifted to the left compared to the proper alignment above.

Is there anyway to remove the indent cleanly?  It seems to be built into the GridViewPanelFlat with no option to remove it.  I would just like a simple grouped DataGrid without any indents.

Thanks

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I followed the approach Alex described with some modifications, so it works as you want. Please let me now if his helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridGroupsIndentation.zip
Children
No Data