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

[Solved] Filling the empty space of a gridview

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ronald Evers
Top achievements
Rank 1
Ronald Evers asked on 09 Mar 2010, 03:31 PM
Hey all,

Whenever there are only a few rows in my gridview the rest of the gridview has a grey background. In some cases this is desirable but for some features I would like to fill the rest of the space with empty rows. I attached a screenshot to make it more clear what I would like to do.

Is there any way to achieve this? I've seen a few workarounds but they were very buggy. If anyone has any good ideas let me know.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 12 Mar 2010, 03:45 PM
Hi Ronald Evers,

In this case the best solution is to play with the GridView template. You can check this blog post - http://blogs.telerik.com/pavelpavlov/posts/10-02-01/empty_data_template_in_radgridview_for_silverlight_and_wpf.aspx  and use the sample project from it as guideline to add ItemsControl that repeats the border representing the empty rows.

Best wishes,
Tsvyatko
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
Ronald Evers
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or