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
88
Alternate Row Highlights
posted

Hi,

 I have a display of datas in my XamlGrid and I want the alternate rows to be highlighted. I tired this code.

<igDP:XamDataGrid.FieldLayoutSettings>

<igDP:FieldLayoutSettings   HighlightAlternateRecords="True" />

</igDP:XamDataGrid.FieldLayoutSettings

But I was unable to see any change in the background. Am I missing anything here.

 In addition to it when I reduce the size of the window , I want the Grid display to resize itself to parent window . Can I achieve this? If so please advice.

 

Thanks in advance,

priya.

 

Parents
  • 93
    posted

     

    priyalatha said:

     I have a display of datas in my XamlGrid and I want the alternate rows to be highlighted. I tired this code.

    <igDP:XamDataGrid.FieldLayoutSettings>

    <igDP:FieldLayoutSettings   HighlightAlternateRecords="True" />

    </igDP:XamDataGrid.FieldLayoutSettings

    But I was unable to see any change in the background. Am I missing anything here.

     

     This is correct though the default hilighting is very subtle. depending on your monitor / color settings you may not even be able to see it.

    You can apply a style to make it more pronounced.  Just add the following style to your window (or page or application) resources:

    <Window.Resources>
            <Style TargetType="{x:Type igDP:DataRecordCellArea}">
                <Setter Property="BackgroundAlternate"  Value="#FFE0E0E0" />   
            </Style>
    </Window.Resources>


     

    priyalatha said:

     In addition to it when I reduce the size of the window , I want the Grid display to resize itself to parent window . Can I achieve this? If so please advice.

     


            <igDP:XamDataGrid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoFit="True">
            </igDP:XamDataGrid>

Reply Children
No Data