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

Get number of visible rows

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kennet
Top achievements
Rank 2
Kennet asked on 18 Nov 2009, 09:30 AM
How can I get the number of visible rows that the grid can show (without scrolling the grid)

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 18 Nov 2009, 10:11 AM
Hi Kennet,

You can use our powerful extension methods:

        void RadGridView1_LayoutUpdated(object sender, EventArgs e)
        {
            var count = RadGridView1.ChildrenOfType<GridViewRow>().Count;
        }

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kennet
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or