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

Is character Shading supported in Gridview Cell ?

1 Answer 5 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Dec 2013, 06:25 AM
Hi,
Is character shading (not background color) supported in Gridview cell (similar to character shading in Microsoft Word) ?

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 20 Dec 2013, 10:24 AM
Hello,

I guess that you are targetting an effect similar to the one that is illustrated on the attached image. You can achieve it with a custom DataTemplate, like this:
<telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                            Header="Stadium"
                                            DataFormatString="{}{0:N0}">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Grid Background="Red" HorizontalAlignment="Left">
                                <ContentControl Content="{Binding StadiumCapacity}" HorizontalAlignment="Left" />
                            </Grid>                        
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
Can you please confirm, whether this is the desired effect?

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or