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

Issue about height of GridViewHeaderRow and GridViewGroupPanel

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Weiqi
Top achievements
Rank 1
Weiqi asked on 02 Aug 2010, 02:42 AM

Hi,

i want to show 10 rows on the grid and the code is below.

  var header = this.FindChildByType<GridViewHeaderRow>();
            var groupPanel = this.FindChildByType<GridViewGroupPanel>();

            this.Height = header.ActualHeight + groupPanel.ActualHeight +
                this.RowHeight * 10;

after i set height  by the above code, the grid show about 9.5 rows , is there any error in calculating the height?


Thanks,



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Aug 2010, 07:27 AM
Hello,

 You may need to include the horizontal scrollbar to these calculations. I'm not sure however what is the desired effect - can you post more info about your scenario? Why not use paging?

All the best,
Vlad
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
Weiqi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or