This is a migrated thread and some comments may be shown as answers.

[Solved] How to modify the state change GridView Cell style?

3 Answers 178 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ma
Top achievements
Rank 1
ma asked on 14 Oct 2010, 10:10 AM
Hello!
    How to modify the state change GridView Cell style?
                <ContentPresenter x:Name="PART_EditorPresenter" Visibility="Collapsed"
                      VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                      HorizontalAlignment="Stretch"
                      Margin="{TemplateBinding Padding}"       />  
    Here, I will not modify. Please help me.
    There Content="{TemplateBinding Content}"  and ContentTemplate="{TemplateBinding ContentTemplate}" In the specific template code?
 Thank.

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 14 Oct 2010, 03:42 PM
Hi Ma,

Can you please share a little bit more info about your scenario, because it is not clear for me what you want to achieve in this case. In the mean time I have prepared an example for you that demonstrates how to change GridViewCell's states. In this sample I removed the Current state of the cell and I changed a little bit the default behavior of the Edited state through adding some additional animation.
 
Please see the attached and if you need further assistance let me know.

Regards,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
ma
Top achievements
Rank 1
answered on 15 Oct 2010, 02:46 AM
Hello:
        Can you tell me Content = "{TemplateBinding Content}" the template, specifically, how to write it?
        As shown in the annex, I want to change the state of the cell to modify the style, he is orange and my side does not match the blue bar.

Thanks.
0
Vanya Pavlova
Telerik team
answered on 19 Oct 2010, 11:20 AM
Hi Ma,

In our online documentation we have an useful article that demonstrates the best practices to use Styling a Cell. In addition to this I have prepared an example that changes the BorderBrush, Background properties of the GridViewCell in its different states.
 
Please see the attached and let me know.

Best wishes,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
ma
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
ma
Top achievements
Rank 1
Share this question
or