Home All Groups Group Topic Archive Search About
Author
12 Feb 2007 1:12 PM
Wouter de Kort
Hi all :)

I'm trying to set my header row to a fixed height. Currently all the rows
are equally spread on the control so If I have less rows all the rows,
including the header, become taller.

What can I do about this? I just want to be able to specify the height of
the header row. I've already tried things like <HeaderStyle Height=20px />
but that doesn't change anything!

Thnx :)

Wouter de kort

Author
13 Feb 2007 9:53 AM
marss
Wouter de Kort wrote:

>
> What can I do about this? I just want to be able to specify the height of
> the header row. I've already tried things like <HeaderStyle Height=20px />
> but that doesn't change anything!
>

Hi,
Don't take my answer as mockery.
Default row height is close to 20px (medium test size in the browser).
Do you test with <HeaderStyle Height="30px"/> or <HeaderStyle
Height="40px"/> ?
Author
13 Feb 2007 10:03 AM
Wouter de Kort
"marss" wrote:
>
> Hi,
> Don't take my answer as mockery.
> Default row height is close to 20px (medium test size in the browser).
> Do you test with <HeaderStyle Height="30px"/> or <HeaderStyle
> Height="40px"/> ?
>

I've tried Height=200px and then the rows get a lot taller. But with
something like height = 0 nothing happens.

If there is just one row in the gridview the header and the row are both
half the height of the control so setting it to 20px changes nothing in that
situation.

Thnx :)

Wouter
Author
13 Feb 2007 10:43 AM
marss
On Feb 13, 12:03 pm, Wouter de Kort
<WouterdeK***@discussions.microsoft.com> wrote:
>
> If there is just one row in the gridview the header and the row are both
> half the height of the control so setting it to 20px changes nothing in that
> situation.
>

Don't set the height of the gridview.
Author
13 Feb 2007 10:49 AM
marss
On Feb 13, 12:03 pm, Wouter de Kort
<WouterdeK***@discussions.microsoft.com> wrote:

>
> I've tried Height=200px and then the rows get a lot taller. But with
> something like height = 0 nothing happens.
>

Minimal height of the row depends on the font size of the header text.
Try this, maybe it helps.
<HeaderStyle Height="10px" Font-Size="8px"/>