Cell partial forecolor

2 posts, 0 answers
  1. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 30 Sep 2011 Link to this post

    Hi, is there any way of change partial color of a cell? for example I have one cell with two words, I need one of them in red, is this possible?
  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Sep 2011 Link to this post

    Hi Chris Thierry,

    May you please share with us the source code you are currently using? In case you have predefined the CellTemplate of a column, you may place the first TextBlock in a Border and set its Background property as shown below:

    <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Name)" Header="Name">
               <Border Background="Red">
                 <TextBlock Text="Employee Name:"/>
                   <TextBlock Text="{Binding Name}"
                              VerticalAlignment="Center" />

    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top