Hi,
This is just a modified version of Josh Smith sample. http://blogs.infragistics.com/blogs/josh_smith/archive/2008/09/04/adding-checkboxes-to-the-record-selectors-in-xamdatagrid.aspx
I have just set the HighlightAlternateRecords="True" in xamgrid and given the Selected Row style as below:
<Style x:Key="SelRowStyle" TargetType="{x:Type igDP:DataRecordPresenter}">
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},Path=DataRecord.DataItem.IsChecked}" Value="True">
<Setter Property="Background" Value="#CC8CB0E5"/>
</DataTrigger>
</Style.Triggers>
</Style>
The selected row’s background changes as expected for alternate records.
Check image below: Only record 1,3,5 is in blue background, though I want record 2 also to behave that way.
I want selected row’s background to be changed in all cases whenever I select the checkbox in the record selector. I will have to retain HighlightAlternateRecords="True" as that is a client specification.
Can anyone tell me how to do that ?
You can try to add another Setter for the BackgroundAlternate color and change the target type to DataRecordCellArea as this element controls the background alternate colors.