New to Telerik UI for WPF? Download free 30-day trial

Last Row Disappears in RadGridView

Environment

Product Version 2020.2.617
Product RadGridView for WPF

Description

RadGridView cannot scroll to the last one or few rows when RowHeight is set and few rows are pinned.

This happens when the RowHeight property value is smaller than the MinHeight of the pin button in the pinned rows (which is around 20px).

Solution

To resolve this, ensure that the MinHeight of the pin button in the rows is 0 or a value smaller or equal than the RowHeight. To set the MinHeight, you can define an implicit style targeting GridViewPinButton and set its MinHeight property.

<telerik:RadGridView GroupRenderMode="Flat" 
                     PinnedRowsPosition="Top" 
                     RowHeight="17"> 
    <telerik:RadGridView.Resources> 
        <Style TargetType="telerik:GridViewPinButton" BasedOn="{StaticResource GridViewPinButtonStyle}"> 
            <Setter Property="MinHeight" Value="0" /> 
        </Style> 
    </telerik:RadGridView.Resources> 
</telerik:RadGridView> 
In this article