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
260
Row selector Styling
posted

Hi,

I am trying to style the row selectors on a XamGrid. However the style (just setting the background color) is not being applied to the alternate rows. Am I missing something? I do not see any properties having to do with the alternate row styles. Below is the Xaml

 

<ig:XamGrid x:Name="grdFormatter" 
                                ItemsSource="{Binding parserObject}" 
                                AutoGenerateColumns="True"
                                MaxHeight="400">
                        <ig:XamGrid.ColumnMovingSettings>
                            <ig:ColumnMovingSettings AllowColumnMoving="Disabled"/>
                        </ig:XamGrid.ColumnMovingSettings>
                        <ig:XamGrid.HeaderStyle>
                            <Style TargetType="igPrim:HeaderCellControl">
                                <Setter Property="Background" Value="Green"/>
                                <Setter Property="Foreground" Value="White"/>
                            </Style>
                        </ig:XamGrid.HeaderStyle>
                        <ig:XamGrid.RowSelectorSettings>
                            <ig:RowSelectorSettings Visibility="Visible" 
                                                    EnableRowNumbering="True"
                                                    RowNumberingSeed="1">
                                <ig:RowSelectorSettings.Style>
                                    <Style TargetType="igPrim:RowSelectorCellControl">
                                        <Setter Property="Background" Value="Green"/>
                                    </Style>
                                </ig:RowSelectorSettings.Style>
                            </ig:RowSelectorSettings>
                        </ig:XamGrid.RowSelectorSettings>
                        <ig:XamGrid.SelectionSettings>
                            <ig:SelectionSettings CellSelection="Multiple" 
                                                  RowSelection="Single" />
                        </ig:XamGrid.SelectionSettings>
                    </ig:XamGrid>

Thanks,
Bill