Removing all grid lines

4 posts, 0 answers
  1. Javier
    Javier avatar
    2 posts
    Member since:
    Oct 2011

    Posted 09 Nov 2011 Link to this post

    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.
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 10 Nov 2011 Link to this post

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

  3. Javier
    Javier avatar
    2 posts
    Member since:
    Oct 2011

    Posted 10 Nov 2011 Link to this post

    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?

  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Nov 2011 Link to this post

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

Back to Top