Change Color of the GridViewCell

2 posts, 0 answers
  1. crazy05
    crazy05 avatar
    74 posts
    Member since:
    Sep 2014

    Posted 26 May 2015 Link to this post

    Hello,

     Below is my GridViewDataColumn and I am binding through ItemsSource.

    <telerik:GridViewDataColumn Header="MVAR" DataMemberBinding="{Binding Value, Mode=TwoWay,NotifyOnSourceUpdated=True,NotifyOnValidationError=True,NotifyOnTargetUpdated=True}" Width="100" IsReadOnly="False" >                                  
    </telerik:GridViewDataColumn>

     

    If user changes the values, I want to change the foreground color of the cell. How can I do this ?

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 May 2015 Link to this post

    Hello Ram,

    In order to apply conditional styling, I can suggest you applying a CellStyleSelector. You can also check the CellStyleSelector online demo. 

    Regards,
    Dimitrina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top