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

Make HeaderRow always visible

1 Answer 203 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jokerwolf
Top achievements
Rank 1
Jokerwolf asked on 13 Aug 2010, 01:31 PM
Hello,
I'm sorry, but is it posible to make the HeaderRow always visible? We have hierarchical gridview with a lot of rows, so we need to scroll each child grid and not the whole grid, cause we don't want to loose  column headers from sight.
In general we need each child grid and parent grid have their own scrollbar.
Your article Visual Structure says: "Scroll bars - RadGridView will automatically show and hide scrollbars when needed. Choose between two types of scrolling: Real time and Deferred. Every hierarchical level has its own scrollbars. "

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 Aug 2010, 03:10 PM
Hello Jokerwolf,

By default RadGridView will not display ScrollBars on its child grids - you will have to define a custom hierarchy template and set an explicit Height or MaxHeight. For example:

<telerik:RadGridView.HierarchyChildTemplate>
    <DataTemplate>
        <telerik:RadGridView Name="playersGrid" Height="100"
                         ItemsSource="{Binding Players}" 
                         AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Position}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>


Regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Jokerwolf
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or