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

Removing all grid lines

3 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 09 Nov 2011, 06:58 PM
I've been trying this all day, but is there any way to remove all grid lines just using implicit styles on a grid with 2 levels of grouping? I'm using the Metro theme and would like to just get down to a completely clean grid.

I've set the borderbrush=0 and background=transparent on the following styles:

GridViewGroupFooterRow
GridViewGroupRow
GridViewGroupFooterCell
GridViewIndentCell
GridViewGroupFooterIndentCell

But I can't get rid myself of all the vertical and horizontal lines on the grid. It seems I am missing some styles, for example "GridViewGroupHeaderRow", "GridViewGroupHeaderCell", "GridViewGroupHeaderIdentCell" do not even exist.There is also a border around the rows in the group.

Am I correct in assuming the only way to remove those is to edit the control template in expression blend? I was trying to avoid it.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Nov 2011, 07:57 AM
Hi Javier,

 Have you tried GridLinesVisibility? You can check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/GridLines

Best wishes,
Vlad
the Telerik team

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

0
Javier
Top achievements
Rank 1
answered on 10 Nov 2011, 03:11 PM
I did try that. When grouping however It has no effect on the border surrounding the rows that are in the group. I've opened the control template in blend. Would you know where these 3 borders are defined as per my screenshot?

0
Vanya Pavlova
Telerik team
answered on 10 Nov 2011, 03:38 PM
Hi Javier,

 


Setting GridLinesVisibility would not affect these borders because they are part of GridViewGroupRow and GridViewIndentCell. If you want to permanently remove these borders you should predefine the templates of GridViewGroupRow and GridViewIndentCell against Metro theme. I am attaching you sample application which demonstrates how this can be achieved. However if you set Metro theme either to RadGridView or at an application level the Border from the GridViewIndentCell would not disappear because we have an issue related to the style of this element in a theme different than the default one.



Greetings,
Vanya Pavlova
the Telerik team

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

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