Hello.
I have a gridView with column. I need to change column template in run-time. I create CellTemplateSelector, but my cell template is not updating. Grid cell template is changing when I scroll the gridView. What is wrong?
Thanks
I have a gridView with column. I need to change column template in run-time. I create CellTemplateSelector, but my cell template is not updating. Grid cell template is changing when I scroll the gridView. What is wrong?
<convertors:TrendConverter x:Key="TrendConverter" /> <convertors:ConditionalDataTemplateSelector x:Key="selector" ConditionConverter="{StaticResource TrendConverter}"> <convertors:ConditionalDataTemplateSelector.Rules> <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d1}"> <convertors:ConditionalDataTemplateRule.Value> <sys:Int32>0</sys:Int32> </convertors:ConditionalDataTemplateRule.Value> </convertors:ConditionalDataTemplateRule> <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d2}"> <convertors:ConditionalDataTemplateRule.Value> <sys:Int32>1</sys:Int32> </convertors:ConditionalDataTemplateRule.Value> </convertors:ConditionalDataTemplateRule> <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d3}"> <convertors:ConditionalDataTemplateRule.Value> <sys:Int32>-1</sys:Int32> </convertors:ConditionalDataTemplateRule.Value> </convertors:ConditionalDataTemplateRule> </convertors:ConditionalDataTemplateSelector.Rules> </convertors:ConditionalDataTemplateSelector><telerik:GridViewDataColumn Header="Посл." UniqueName="TrendValue" DataMemberBinding="{Binding Path=Trend}" Style="{DynamicResource GridViewDataColumnIntegerStyle}" CellTemplateSelector="{StaticResource selector}">Thanks