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

Problem with ColumnGroupsViewDefinition - row height.

3 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 28 Jun 2011, 02:19 PM
Hello,
I implemented ColumnGroupsViewDefinition for my Grid (the same code in Telerik Q3 Demos - Grid View), but it's change RowHeight. I try to change f.e:
this.CollectionGrid.TableElement.RowHeight = 30;
this.CollectionGrid.TableElement.GroupHeaderHeight = 30;
            
this.CollectionGrid.TableElement.FilterRowHeight = 30;
               
this.CollectionGrid.TableElement.TableHeaderHeight = 30;
 
but it's not work. What is more i have problem with correctly filling header rows (screenshot- I deleted data).
Thanks for help.

3 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 01 Jul 2011, 01:59 PM
Hello Marcin,

Thank you for writing.

The properties you use do not apply for ColumnGroupsViewDefinition. In this view you can use the RowSpan property of GridViewColumn:
view.ColumnGroups[0].Rows[0].Columns[0].RowSpan = 100;

Whether you need to define different height for data rows, you can set their Height property:
using (this.radGridView1.DeferRefresh())
{
    foreach (GridViewDataRowInfo row in this.radGridView1.Rows)
    {
        row.Height = 30;
    }
}

I hope it helps. I would once again kindly ask you to use your corporate account to submit support tickets. This will allow us to continue supporting your enquiries.

Kind regards,
Alexander
the Telerik team
Registration for Q2 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting July 18th and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Gabriele
Top achievements
Rank 1
answered on 05 Aug 2011, 05:49 PM
I did try the suggestion to use
view.ColumnGroups[0].Rows[0].Columns[0].RowSpan = 100;

but it does not work.

-Gabriele
0
Alexander
Telerik team
answered on 10 Aug 2011, 04:01 PM
Hello Gabriele,

You can set the RowSpan property value after initializing the column groups of the view. You can test it using the code from the Column Groups View help article, setting the RowSpan value after the code, presented in the article.

Could you please give us more details regarding your scenario? It will help me investigate this case further.

I am looking forward to your reply.

Best regards,
Alexander
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Gabriele
Top achievements
Rank 1
Share this question
or