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

Remove Gridlines from GridViewGroupFooterCell or GridViewGroupFooterRow

3 Answers 193 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yana
Top achievements
Rank 1
Yana asked on 23 Aug 2011, 04:40 PM
How can I remove the grid lines from my RadGrid Footer and make the content be seen from the left part of the footer?


See the highlighted image on the file i'll be sharing/attaching... please help...
http://www4.picturepush.com/photo/a/6383082/img/6383082.png


Thanks

Y

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 23 Aug 2011, 05:14 PM
Hello Yana,

 
You may predefine the template of GridViewFooterCell using Microsoft Expression Blend and remove its Border from there. Within its template you may also set the alignment of the ContentPresenter (which is of type ContentTemplate). The same is valid for GridViewGroupFooterCell. As an alternative each GridViewColumn exposes a property FooterTextAlignment which is responsible for content alignment in each column footer. In order to keep our future support communication clean and consistent please keep only a single thread open on a corresponding matter.
 

 

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 >>

0
Yana
Top achievements
Rank 1
answered on 24 Aug 2011, 02:04 AM
Thanks for responding, but, I'm quite having some problems with Expression Blend, Can you please provide other way on how to remove the gridlines like programmatically, in Silverlight/C#-VS2010?


Thanks!
0
Vanya Pavlova
Telerik team
answered on 24 Aug 2011, 08:08 AM
Hello Yana,

 

Even with a simple style you may remove these the Borders as part of GridViewFooterCell/GridViewGroupFooterCell:

<Window.Resources>
    <Style TargetType="telerik:GridViewFooterCell">
    <Setter Property="BorderThickness" Value="0"/>
    <Setter Property="Background" Value="Red"/>
    </Style>
<Style TargetType="telerik:GridViewGroupFooterCell">
    <Setter Property="Background" Value="Green"/>
    <Setter Property="BorderThickness" Value="0"/>
    </Style>
    </Window.Resources>
    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <telerik:RadGridView ShowColumnFooters="True" ShowGroupFooters="True" ItemsSource="{Binding Collection}"/>
    </Grid>


Another possibility is to gather these cells from RadGridView using the extension method ChildrenOfType and directly set its BorderThicknes from there. If you need to get any xaml file from a Telerik theme you may access it from the Themes folder of your personal installation. 


Hope this helps!


Greetings,
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
Yana
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Yana
Top achievements
Rank 1
Share this question
or