Hi,
I have a display of datas in my XamlGrid and I want the alternate rows to be highlighted. I tired this code.
<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.
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>
Thanks for the reply,
I get the gird which is autosized and I can scroll up and down using mouse. I see horizontal and vertical scroll bars along with the xamgrid which are inactive.
Autosize makes them inactive. How can I acheive autosized grid and also have horizontal and vertical scrollers?
Thanks,
priyalatha.