In our code we have set style on the CellControl type at various places listed below
1. In xaml under Grid.Resources, the Grid contains the XamGrid (FontSize property is set here)
2. In code, we also have a LessThanContionalFormatRule added to the columns ConditionalFormatCollection, also a different style is set here (Background and Foreground colors set here)
3. In the CellControlAttached event, to apply formatting based on the values of the cell... (Background and Foreground colors set here)
Here are some of the issues that we face...
i) When the application runs, only the style specified at location no. 3 above seems to work..
ii) When IsAlternateRowsEnabled is true, styles seem to be applied only on alternate rows
iii) When a row/cell on the grid is active (meaning the user has clicked on it) none of the styles seem to be applied. Only the row/cell selection color is shown.
Need help in resolving these... TIA
1)Setting the style directly onto the CellControl would override any other settings so yes, that will happen if you set the style in the CellControlAttached.
2) AlternateRows and their styling is controlled via a Visual state, so if you are using it then you need to modify how that would be shown.
http://forums.infragistics.com/forums/p/41630/232326.aspx#232326
http://forums.infragistics.com/forums/p/30703/169472.aspx#169472
3) When you select a row, there is a style applied to the row. That style would have precedence over other styles.
Correction: Selection isn't a style, it's also a VisualState, so that would have to be modified there as well.