with xamGrid, I want to change cell font color based on the data from datasource. For example, one column named status with following kind of value:
1. Good
2. Bad
3. Not sure
then I want to all Bad status dispalyed as red font, and Good status displayed as green font.
How to implement this either in xaml or in code?
The assembly for xamGrid is InfragisticsSL4.Controls.Grids.XamGrid.v10.3.
Could you plese try your solution above with this assembly and see if it's working?
By the way, when the 11.1 will be available for clients because I dont't want to spent to much time on source code at this time?
NetAdvanatage 10.3 is our latest production release. So you have the lastest dlls. 11.1 will be our upcoming release.
What versions of the 10.3 dlls do you have?
Thank you. I have downloaded you code and compared each other. Codes no difference. But veriosn of Infrigistic DLL is different. Mine is 10.3 and your is 11.1.
My company have purchased Infrigistic production last week, so when we donwloaded, Infrigistic should give us the lastest version. How can I get the lastest version of Infrigistic silverlight?
Hi,
I've attached a sample application. If you run it you should get the following result:
HTH
Thank you. Tried your suggestion as below:
<ig:TextColumn Key="Status" > <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding Path=HeaderStatus,Source={StaticResource localizedStrings}}" /> </DataTemplate> </ig:TextColumn.HeaderTemplate> <ig:TextColumn.ConditionalFormatCollection> <ig:EqualToConditionalFormatRule Value="Good"> <ig:EqualToConditionalFormatRule.StyleToApply> <Style TargetType="ig:ConditionalFormattingCellControl"> <Setter Property="Foreground" Value="Green" /> </Style> </ig:EqualToConditionalFormatRule.StyleToApply> </ig:EqualToConditionalFormatRule> <ig:EqualToConditionalFormatRule Value="Bad"> <ig:EqualToConditionalFormatRule.StyleToApply> <Style TargetType="ig:ConditionalFormattingCellControl"> <Setter Property="Foreground" Value="Red" /> </Style> </ig:EqualToConditionalFormatRule.StyleToApply> </ig:EqualToConditionalFormatRule> </ig:TextColumn.ConditionalFormatCollection></ig:TextColumn>
The run the app, no error. but nothing happened. The column Status same as before with no color changed.