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

Grid group header height

2 Answers 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
IT Development
Top achievements
Rank 1
IT Development asked on 25 Jan 2010, 09:01 AM
Hello,

Problem with programmaticly setting the height of the group header (q3 2009).

Is the ViewCellFormatting event the place for adjusting the group header height?

Trying things like:
if (e.CellElement.RowInfo is GridViewGroupRowInfo)
{
      int height = Convert.ToInt32(Mo.LetterType.Height);
      if (height > 10)
      {
                e.CellElement.RowInfo.Height = height + 10;
      }
      else
      {
              e.CellElement.RowInfo.Height = 20
       }
}

Anybody got a suggestion?

Kind regards,

Tim van Rooijen

2 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 25 Jan 2010, 10:13 AM
Hello Tim. Please use the GroupHeaderHeight property to change the group header height. Here is a sample:

((GridTableElement)this.radGridView1.GridElement).GroupHeaderHeight = 40;

Should you have any other questions, please write us back.

Kind regards,
Jack
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.
0
IT Development
Top achievements
Rank 1
answered on 25 Jan 2010, 10:17 AM
Thank you

That solved my problem.


Tags
GridView
Asked by
IT Development
Top achievements
Rank 1
Answers by
Jack
Telerik team
IT Development
Top achievements
Rank 1
Share this question
or