GridView Header Height

W

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
 
M

marss

Wouter said:
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"/> ?
 
W

Wouter de Kort

marss said:
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
 
M

marss

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.
 
M

marss

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"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top