The item source of this gridview is bound to a DataTable programmatically. The amount of columns change depending on how many days the user wants to see. I need all of the Date cells to have a foreground (Text colour) of red if they do not equal the number in the expected column.
I have tried many ways of accomplishing this but nothing seems to work.
Thank you in advance.
x:Name="daGrid" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
AutoGenerateColumns="True" Margin="15,5,5,5" CanUserDeleteRows="False"
CanUserInsertRows="False" ShowGroupPanel="False" Grid.RowSpan="11"
CanUserFreezeColumns="False" CanUserGroupColumns="False"
ItemsSource="{Binding IsAsync=True}" SelectionChanged="daGrid_SelectionChanged"
AutoGeneratingColumn="daGrid_AutoGeneratingColumn" CellValidating="daGrid_CellValidating">
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu x:Name="GridContextMenu" Opened="GridContextMenu_Opened"
ItemContainerStyle="{StaticResource MenuItemContainerStyle1}"
telerik:StyleManager.Theme="Windows8" ItemClick="GridContextMenu_ItemClick"
/>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadGridView>
This is the xaml code for the gridview.