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

[Solved] Strike through text

3 Answers 136 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.
Marcel
Top achievements
Rank 1
Marcel asked on 06 Sep 2011, 09:11 AM
Hi, 

Is it possible to have strike through text displayed in the grid view?

Thanks

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 06 Sep 2011, 09:19 AM
Hi Marcellino,

 

May you please elaborate bit more about your exact settings? Generally you may predefine the CellTemplate of a column with a single TextBlock in it and set its TextDecorations property however I am not quite sure how this fits in your scenario. 
 
 

All the best,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Marcel
Top achievements
Rank 1
answered on 06 Sep 2011, 09:52 AM
Hi thanks for the reply, so my first post was a tad brief. 

Basically I will be obtaining data from a database, depending on the type of record I will need to alter the font color, size and occasional strike through the text and display this within the row. I just wanted to know if it was possible to display strike through text in the grid view and if there is a simple example of how you would do this. Currently I'm just binding to an ObservableCollection where the records are accessed and simply displaying the results. 

Thanks. 
0
Vanya Pavlova
Telerik team
answered on 06 Sep 2011, 10:21 AM
Hi Marcellino,

 

The recommended approach to apply a style based on underlying property value is to use StyleSelectors.
Please refer to our online demos "Row Style Selectors" for further reference. 


Best wishes,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Marcel
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Marcel
Top achievements
Rank 1
Share this question
or