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
275
How to increase the indent of child row
posted

I am displaying a 2-level data on xamDataGrid and record selector has been replaced with checkbox. anyway to increase the indent of child level.

 

Parents
  • 69686
    Verified Answer
    posted

    Hello,

    You can create a style for the DataRecordPresenter and set the Left Margin. If you don't set a x:key of the style, it will be applied to all of the DataRecordPresenter including the parent Records, and the there will be a margin as well. If you do set x:key, you have to apply this style to the records you choose ( child records ).

             <Style TargetType="{x:Type igDP:DataRecordPresenter}" BasedOn="{x:Null}">

                <Setter Property="Margin" Value="20,0,0,0"/>

            </Style>

    Alex.

Reply Children