GridViewIndentCell hidden and resulting row width

2 posts, 0 answers
  1. John
    John avatar
    10 posts
    Member since:
    Aug 2010

    Posted 25 Jun 2014 Link to this post

    Hello,
    I have a GridView with one column with width "*", and the rest "Auto", which allows for the user resizing the window.

    I am hiding the Group Indent Cell using this:

    <Style TargetType="telerik:GridViewIndentCell">
        <Setter Property="Visibility" Value="Collapsed"/>
    </Style>

    but this seems to still affect the width of the resulting row since I end up with a gap at the end of the row which I can't use and can't click. It appears to me that the row is sized before the GridViewIndentCell is hidden, and the row is not resized again to allow for the extra width. (See attached screenshot).

    1. Is there a way of removing this gap?
    2. I would also like to turn off the border round the currently selected cell and can't find a way to do this.

    Any help would be appreciated.

    Thanks,
    John
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Jun 2014 Link to this post

    Hello John,

    As to your questions:
    1. This gap is the background of RadGridView behind GridViewRow, which is shorted after you hide the GridViewIndentCell. I am afraid this cannot be changed. You can still set the same Background for RadGridView and its elements, so that the gap is not so much visible. 
    2. You can check this help article for a reference on how to remove the border of the current cell. 

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top