I have already set the Background Selected to the Same color as BackGroundActive, so the Selected Cell background should be the same as the SelectedRow Background.
However it comes up as different. I am using v11.1 / Win XP
<Style TargetType='{x:Type igDP:DataRecordCellArea}'> <Setter Property='BackgroundHover' Value='Transparent'/> <Setter Property='BackgroundActive' Value='#FF483D8B'/> <Setter Property='BorderHoverBrush' Value='Transparent'/> <Setter Property='BackgroundSelected' Value='#FF483D8B'/> </Style>
HI,
Try this style
<Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property='BackgroundSelected' Value='#FF483D8B'/> <Setter Property='BackgroundActive' Value='#FF483D8B'/> </Style>
Sincerely, Matt Developer Support Engineer
Ignore the above ... For some reason it got posted to the wrong original post, and I could not delete it.
Will repost elsewhere...
The style that's not getting applied can't really get put above the DataSource in the xaml, because it's its own separate element, something like this:
<igDP:XamDataGrid ... ... ... DataSource="{Binding Path=MyPath}"> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings ... ... ... CellValuePresenterStyle="{StaticResource MyStyle}" > </igDP:FieldSettings> </igDP:XamDataGrid.FieldSettings></igDP:XamDataGrid>
I don't think there's any way to move the DataSource after the FieldSettings, is there?
But I'd be surprised if it's beginning to render the data before it's even processed the xaml, but you're right that it does appear to be some kind of a timing issue. That's where I'm hoping something within Infragistics code might have fixed this.
As one quick other point, I can see in the debugger that the CellValuePresenterStyle is set properly on the grid, but not on any lower level FieldLayouts or individual Fields. So it's not that it's not being set, or that it's being overwritten. It's something in Infragistics' processing of that. But I can see, using Snoop, that the default Infragistics stylings - the individual colors, that is - are being used for the errant record.
I believe my sample does that.
Please let me know if you need further assistance.
Thanks Matt,
I wanted the cell highlight to be same as Row highlight.
I am attaching a sample project. In my sample the SelectedRow and SelectecCell have the same background color.
I am not sure what you are trying to accomplish.