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
180
DataRecordPresenter based on RecordSelector
posted

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  ?

Parents
No Data
Reply Children
No Data